From 8179d66ae62d76da59fc6fcd4e8b83af06564388 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 19 Apr 2015 09:42:06 -0400 Subject: [PATCH] More error checking in unix/parent.c. --- unix/parent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unix/parent.c b/unix/parent.c index 9e934484..2decb979 100644 --- a/unix/parent.c +++ b/unix/parent.c @@ -80,7 +80,8 @@ static void uipParent_remove(GtkContainer *container, GtkWidget *widget) gtk_widget_unparent(widget); if (p->children != NULL) - g_ptr_array_remove(p->children, widget); + if (g_ptr_array_remove(p->children, widget) == FALSE) + complain("widget %p not found in uipParent gtk_container_remove()", widget); } #define gtkXPadding 12