]> Pileus Git - ~andy/gtk/commitdiff
[broadway] Remove window from hashtable when destroyed
authorAlexander Larsson <alexl@redhat.com>
Fri, 15 Apr 2011 14:18:11 +0000 (16:18 +0200)
committerAlexander Larsson <alexl@redhat.com>
Fri, 15 Apr 2011 18:34:32 +0000 (20:34 +0200)
gdk/broadway/gdkwindow-broadway.c

index aa6973da2e67b47f14097a9d43978f7dd20f4633..db1f80d1c6544d0ae32526606ebcdc8b1ea7a576 100644 (file)
@@ -492,6 +492,8 @@ _gdk_broadway_window_destroy (GdkWindow *window,
     }
 
   broadway_display = GDK_BROADWAY_DISPLAY (gdk_window_get_display (window));
+  g_hash_table_remove (broadway_display->id_ht, GINT_TO_POINTER(impl->id));
+
   if (broadway_display->output)
     broadway_output_destroy_surface (broadway_display->output,
                                     impl->id);