[gnome-settings-daemon/gnome-3-4] housekeeping: Don't leak	notification objects
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-settings-daemon/gnome-3-4] housekeeping: Don't leak	notification objects
- Date: Tue, 25 Sep 2012 11:17:50 +0000 (UTC)
commit 9f951b2d6b9ebe7057f78415c55eab0e95893c7f
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jun 29 23:58:04 2012 -0400
    housekeeping: Don't leak notification objects
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679177
 plugins/housekeeping/gsd-disk-space.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/housekeeping/gsd-disk-space.c b/plugins/housekeeping/gsd-disk-space.c
index 7cc0273..cf10e49 100644
--- a/plugins/housekeeping/gsd-disk-space.c
+++ b/plugins/housekeeping/gsd-disk-space.c
@@ -292,7 +292,7 @@ empty_trash_callback (NotifyNotification *n,
 static void
 on_notification_closed (NotifyNotification *notification)
 {
-        notification = NULL;
+        g_object_unref (notification);
 }
 
 static gboolean
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]