1. kasicass
  2. thesword2

Commits

kasicass  committed b37ded4

bugfix: GUI_windowDestroy() crash

  • Participants
  • Parent commits d12bab5
  • Branches default

Comments (0)

Files changed (2)

File c/src/gui/window.c

View file
  • Ignore whitespace
 	// remove me from parent.childList
 	if (me->parent->child == me)
 	{
-		me->parent->child = NULL;
+		me->parent->child = me->next;
 		return;
 	}
 

File c/src/main.c

View file
  • Ignore whitespace
 	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);
 }