mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 20:29:17 +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());
|
IMAGESAVE(sout, fname.c_str());
|
||||||
|
SDL_FreeSurface(sout);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user