aboutsummaryrefslogtreecommitdiffstats
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
parent552823437fdb5a20a92346602c8b47da08912a99 (diff)
downloadgsoc2013-evolution-c074252e4fc21ddf87317cba976d26d101234165.tar
gsoc2013-evolution-c074252e4fc21ddf87317cba976d26d101234165.tar.gz
gsoc2013-evolution-c074252e4fc21ddf87317cba976d26d101234165.tar.bz2
gsoc2013-evolution-c074252e4fc21ddf87317cba976d26d101234165.tar.lz
gsoc2013-evolution-c074252e4fc21ddf87317cba976d26d101234165.tar.xz
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
-rw-r--r--widgets/ChangeLog5
-rw-r--r--widgets/menus/gal-view-menus.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/widgets/ChangeLog b/widgets/ChangeLog
index 60bb149f56..0cd57d5557 100644
--- a/widgets/ChangeLog
+++ b/widgets/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2003-12-06 JP Rosevear <jpr@ximian.com>
* */Makefile.am: Remove hard coded disable deprecated flags
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);