fixed a memory leak when taking postprocessed screenshots

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:50:12 +02:00
1 parent 990bddb58d
commit 362daec90c
1 file changed
+1
+1
View File
@@ -295,6 +295,7 @@ void postprocess(string fname, SDL_Surface *sdark, SDL_Surface *sbright) {
}
}
IMAGESAVE(sout, fname.c_str());
SDL_FreeSurface(sout);
}
#endif