Make sure the shell is really destroyed when removing it from the window

Explicitely call gtk_widget_destroy() to break whatever reference
cycles so the shell really goes away.
This commit is contained in:
Michael Natterer 2009-10-01 19:38:52 +02:00
parent 0e68a7d59a
commit 625885eb9d
1 changed files with 5 additions and 0 deletions

View File

@ -463,7 +463,12 @@ gimp_display_delete (GimpDisplay *display)
{
if (gimp_image_window_get_n_shells (window) > 1)
{
g_object_ref (shell);
gimp_image_window_remove_shell (window, shell);
gtk_widget_destroy (GTK_WIDGET (shell));
g_object_unref (shell);
}
else
{