aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus/gal-view-menus.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-12-10 09:12:42 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-12-10 09:12:42 +0800
commitc074252e4fc21ddf87317cba976d26d101234165 (patch)
tree528ff663d01dbd4ace383ac9dc647b90d4f9033a /widgets/menus/gal-view-menus.c
parent552823437fdb5a20a92346602c8b47da08912a99 (diff)
downloadgsoc2013-evolution-c074252e4fc21ddf87317cba976d26d101234165.tar.gz
gsoc2013-evolution-c074252e4fc21ddf87317cba976d26d101234165.tar.zst
gsoc2013-evolution-c074252e4fc21ddf87317cba976d26d101234165.zip
NULL out priv->instance when we unref it. Bug #51713.
2003-12-10 Not Zed <NotZed@Ximian.com> * menus/gal-view-menus.c (remove_instance): NULL out priv->instance when we unref it. Bug #51713. svn path=/trunk/; revision=23895
Diffstat (limited to 'widgets/menus/gal-view-menus.c')
-rw-r--r--widgets/menus/gal-view-menus.c4
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);