[gnome-power-manager] Add a weak ref for the notifications so they are set NULL when being finalised
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-power-manager] Add a weak ref for the notifications so they are set NULL when being finalised
- Date: Tue, 21 Jul 2009 16:47:01 +0000 (UTC)
commit faffb0935e417088379c9609442f7590daa7811b
Author: Richard Hughes <richard hughsie com>
Date: Tue Jul 21 16:48:33 2009 +0100
Add a weak ref for the notifications so they are set NULL when being finalised
src/gpm-manager.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index 8a3f048..db023c4 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -408,6 +408,7 @@ gpm_manager_notify (GpmManager *manager, NotifyNotification **notification_class
}
/* save this local instance as the class instance */
+ g_object_add_weak_pointer (G_OBJECT (notification), (gpointer) ¬ification);
*notification_class = notification;
out:
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]