mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-23 15:36:59 +00:00
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
Block a user