mirror of https://github.com/GNOME/gimp.git
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:
parent
0e68a7d59a
commit
625885eb9d
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue