diff options
Diffstat (limited to 'widgets/menus')
-rw-r--r-- | widgets/menus/gal-view-menus.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/widgets/menus/gal-view-menus.c b/widgets/menus/gal-view-menus.c index dcd911d568..128969b5b8 100644 --- a/widgets/menus/gal-view-menus.c +++ b/widgets/menus/gal-view-menus.c @@ -105,8 +105,10 @@ remove_instance (GalViewMenus *gvm) gvm->priv->instance_changed_id = 0; gvm->priv->collection_changed_id = 0; - if (gvm->priv->instance) + if (gvm->priv->instance) { g_object_unref (gvm->priv->instance); + gvm->priv->instance = NULL; + } remove_listeners(gvm); remove_xml(gvm); |