Fixes some more memory leaks. There are still some but it looks like they are SDL fault
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@648 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
a6a9a6cddf
commit
6b856384eb
2
main.c
2
main.c
@ -398,6 +398,8 @@ void Initialisation_du_programme(int argc,char * argv[])
|
|||||||
if (((byte *)(Icone->pixels))[(y*32+x)] != 255)
|
if (((byte *)(Icone->pixels))[(y*32+x)] != 255)
|
||||||
Masque_icone[(y*32+x)/8] |=0x80>>(x&7);
|
Masque_icone[(y*32+x)/8] |=0x80>>(x&7);
|
||||||
SDL_WM_SetIcon(Icone,Masque_icone);
|
SDL_WM_SetIcon(Icone,Masque_icone);
|
||||||
|
free(Masque_icone);
|
||||||
|
SDL_FreeSurface(Icone);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Texte
|
// Texte
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user