[gnome-flashback] notifications: destroy status icon
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] notifications: destroy status icon
- Date: Wed, 27 Apr 2016 20:02:43 +0000 (UTC)
commit c2865937a4b8a2aaacf5f6f6057d1628685db054
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Apr 27 22:08:05 2016 +0300
notifications: destroy status icon
gnome-flashback/libnotifications/nd-queue.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gnome-flashback/libnotifications/nd-queue.c b/gnome-flashback/libnotifications/nd-queue.c
index 14a53d8..e0a27c2 100644
--- a/gnome-flashback/libnotifications/nd-queue.c
+++ b/gnome-flashback/libnotifications/nd-queue.c
@@ -514,9 +514,8 @@ nd_queue_finalize (GObject *object)
destroy_screen (queue);
- if (queue->priv->numerable_icon != NULL) {
- g_object_unref (queue->priv->numerable_icon);
- }
+ g_clear_object (&queue->priv->numerable_icon);
+ g_clear_object (&queue->priv->status_icon);
G_OBJECT_CLASS (nd_queue_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]