-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
--backend.cpp--
void SDL_Mobile_Backend::exitApplication() {
for(std::map<std::string, FlxBackendImage*>::iterator it = images.begin(); it != images.end(); it++) {
if(it->second) {
SDL_Image *img = (SDL_Image*)it->second;
if(img->texture) SDL_DestroyTexture(img->texture);
delete img;
}
}
images.clear(); //<---
It's often forgotten, but while the contents of the container are deleted, the container itself is not
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels