[nautilus] desktop-background: unref the GnomeBG on finalize



commit 91fc1674ae71d356b06b8b549e91782a2b06758a
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Feb 6 12:38:31 2012 -0500

    desktop-background: unref the GnomeBG on finalize
    
    This also prevents signals being emitted from it after our destruction,
    as in https://bugzilla.gnome.org/show_bug.cgi?id=665796

 libnautilus-private/nautilus-desktop-background.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-desktop-background.c b/libnautilus-private/nautilus-desktop-background.c
index b853704..c3181bb 100644
--- a/libnautilus-private/nautilus-desktop-background.c
+++ b/libnautilus-private/nautilus-desktop-background.c
@@ -117,6 +117,8 @@ nautilus_desktop_background_finalize (GObject *object)
 	free_background_surface (self);
 	free_fade (self);
 
+	g_clear_object (&self->details->bg);
+
 	G_OBJECT_CLASS (nautilus_desktop_background_parent_class)->finalize (object);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]