Commits

kasicass committed b37ded4

bugfix: GUI_windowDestroy() crash

Comments (0)

Files changed (2)

c/src/gui/window.c

 	// remove me from parent.childList
 	if (me->parent->child == me)
 	{
-		me->parent->child = NULL;
+		me->parent->child = me->next;
 		return;
 	}
 
 	box3 = GUI_windowCreate(canvas);
 	GUI_windowSetPosition(box3, 0, 30);
 	GUI_windowSetSize(box3, 20, 20);
-	GUI_windowSetColor(box2, GUI_BLUE);
+	GUI_windowSetColor(box3, GUI_BLUE);
 	GUI_windowAddChild(win2, box3);
 }