Gui skins: Added memory checks and correctness

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@877 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-06-17 19:38:55 +00:00
parent 1c53b5dd7f
commit 1910a39fd4
2 changed files with 28 additions and 6 deletions

7
main.c
View File

@@ -687,6 +687,13 @@ void Program_shutdown(void)
free(Spare_screen);
free(Main_screen);
// Free the skin (Gui graphics) data
if (Gfx)
{
free(Gfx);
Gfx=NULL;
}
// On prend bien soin de passer dans le répertoire initial:
if (chdir(Initial_directory)!=-1)
{