fixed a memory leak when taking postprocessed screenshots
This commit is contained in:
parent
990bddb58d
commit
362daec90c
|
@ -295,6 +295,7 @@ void postprocess(string fname, SDL_Surface *sdark, SDL_Surface *sbright) {
|
|||
}
|
||||
}
|
||||
IMAGESAVE(sout, fname.c_str());
|
||||
SDL_FreeSurface(sout);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue