More free
This commit is contained in:
parent
4c94ac5aa3
commit
c5aa101bf0
1 changed files with 1 additions and 1 deletions
|
@ -52,5 +52,5 @@ void enregistrementImage(QuadTree quadtree, std::string chemin, short compressio
|
||||||
if(IMG_SavePNG(img, chemin.c_str()) != 0) {
|
if(IMG_SavePNG(img, chemin.c_str()) != 0) {
|
||||||
std::cerr << "Impossible de sauvegarder l'image (" << SDL_GetError() << ")." << std::endl;
|
std::cerr << "Impossible de sauvegarder l'image (" << SDL_GetError() << ")." << std::endl;
|
||||||
}
|
}
|
||||||
SDL_FreeSurface(img);
|
/* SDL_FreeSurface(img); */
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue