[gnome-photos] done-notification: Remove timeout_id during destruction
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] done-notification: Remove timeout_id during destruction
- Date: Fri, 1 Apr 2016 15:24:07 +0000 (UTC)
commit 18f6655b58d1e56bfa6b1b493696626cf3176f3f
Author: Rafael Fonseca <r4f4rfs gmail com>
Date: Mon Mar 21 15:45:43 2016 +0100
done-notification: Remove timeout_id during destruction
https://bugzilla.gnome.org/show_bug.cgi?id=763908
src/photos-done-notification.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/photos-done-notification.c b/src/photos-done-notification.c
index e4d0fa3..29efb0e 100644
--- a/src/photos-done-notification.c
+++ b/src/photos-done-notification.c
@@ -206,11 +206,7 @@ photos_done_notification_constructed (GObject *object)
photos_notification_manager_add_notification (PHOTOS_NOTIFICATION_MANAGER (self->ntfctn_mngr),
GTK_WIDGET (self));
- self->timeout_id = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT,
- DONE_TIMEOUT,
- photos_done_notification_timeout,
- g_object_ref (self),
- g_object_unref);
+ self->timeout_id = g_timeout_add_seconds (DONE_TIMEOUT, photos_done_notification_timeout, self);
}
@@ -219,6 +215,8 @@ photos_done_notification_dispose (GObject *object)
{
PhotosDoneNotification *self = PHOTOS_DONE_NOTIFICATION (object);
+ photos_done_notification_remove_timeout (self);
+
g_clear_object (&self->item);
g_clear_object (&self->ntfctn_mngr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]