diff options
author | jonas <himself@jonasgunz.de> | 2019-01-06 16:33:36 +0100 |
---|---|---|
committer | jonas <himself@jonasgunz.de> | 2019-01-06 16:33:36 +0100 |
commit | 1751c781621b644eda4bd2ebd8eb73fa2270e98e (patch) | |
tree | ad3551ec75c3959b98d2c5ee3271615d99ed0835 /cRender.cpp | |
parent | 4912eb6946734a540a81cef97bcf0d418b73406f (diff) | |
download | termgl-1751c781621b644eda4bd2ebd8eb73fa2270e98e.tar.gz |
Fixed double-free on exit
added make all
Diffstat (limited to 'cRender.cpp')
-rw-r--r-- | cRender.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cRender.cpp b/cRender.cpp index 6d7a70a..d4f4185 100644 --- a/cRender.cpp +++ b/cRender.cpp @@ -47,6 +47,9 @@ cRender::cRender() {} cRender::~cRender() { //Free allocated memory + if(bBlockRender) + return; + for (int i = 0; i < sizeX; i++) { free(cScreen[i]); free(wColor[i]); @@ -58,7 +61,7 @@ cRender::~cRender() free(bChanged); setConsoleEcho(true); - + #ifdef __linux__ setConsoleCursor(true); #endif |