changeset 33078:c84938655cf4

Reset skin pointer and window name. After freeing the guiItems structure, these internal variables must be reset, too.
author ib
date Thu, 31 Mar 2011 09:37:12 +0000
parents 706f36627399
children 25c467321c98
files gui/skin/skin.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui/skin/skin.c	Thu Mar 31 09:09:54 2011 +0000
+++ b/gui/skin/skin.c	Thu Mar 31 09:37:12 2011 +0000
@@ -889,6 +889,8 @@
 
     appFreeStruct();
 
+    skin = NULL;
+    currWinName[0] = 0;
     linenumber = 0;
 
     while (fgets(tmp, sizeof(tmp), skinFile)) {