app: some more precondition checks in gimpoverlaychild.c

This commit is contained in:
Michael Natterer
2013-04-27 00:23:04 +02:00
parent 9de6e41abb
commit 244439f35e

View File

@ -140,6 +140,7 @@ gimp_overlay_child_realize (GimpOverlayBox *box,
g_return_if_fail (GIMP_IS_OVERLAY_BOX (box));
g_return_if_fail (child != NULL);
g_return_if_fail (child->window == NULL);
widget = GTK_WIDGET (box);
@ -205,6 +206,7 @@ gimp_overlay_child_unrealize (GimpOverlayBox *box,
{
g_return_if_fail (GIMP_IS_OVERLAY_BOX (box));
g_return_if_fail (child != NULL);
g_return_if_fail (child->window != NULL);
gdk_window_set_user_data (child->window, NULL);
gdk_window_destroy (child->window);