GtkApplcationWindow: plug two obvious leaks

This commit is contained in:
Ryan Lortie 2011-12-01 22:14:57 -05:00
parent c7e7237559
commit f0c2ff39fc

View File

@ -507,6 +507,9 @@ gtk_application_window_dispose (GObject *object)
gtk_widget_unparent (window->priv->menubar); gtk_widget_unparent (window->priv->menubar);
window->priv->menubar = NULL; window->priv->menubar = NULL;
} }
g_clear_object (&window->priv->app_menu_section);
g_clear_object (&window->priv->menubar_section);
g_clear_object (&window->priv->actions); g_clear_object (&window->priv->actions);
G_OBJECT_CLASS (gtk_application_window_parent_class) G_OBJECT_CLASS (gtk_application_window_parent_class)