fixed a memory leak when taking postprocessed screenshots

This commit is contained in:
Zeno Rogue 2019-08-06 21:09:50 +02:00
parent 990bddb58d
commit 362daec90c
1 changed files with 1 additions and 0 deletions

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