[gnome-desktop] GnomeWallClock: Remove the date/time source on dispose
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] GnomeWallClock: Remove the date/time source on dispose
- Date: Fri, 9 Sep 2011 06:32:52 +0000 (UTC)
commit a65613bf0a507a226c172bb6f503e27532efb0fa
Author: Vincent Untz <vuntz gnome org>
Date: Thu Sep 8 19:01:35 2011 +0200
GnomeWallClock: Remove the date/time source on dispose
We don't do it in finalize since the dispose handler needs the objects
that are being disposed.
https://bugzilla.gnome.org/show_bug.cgi?id=658583
libgnome-desktop/gnome-wall-clock.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libgnome-desktop/gnome-wall-clock.c b/libgnome-desktop/gnome-wall-clock.c
index 49437d8..167619d 100644
--- a/libgnome-desktop/gnome-wall-clock.c
+++ b/libgnome-desktop/gnome-wall-clock.c
@@ -84,6 +84,11 @@ gnome_wall_clock_dispose (GObject *object)
{
GnomeWallClock *self = GNOME_WALL_CLOCK (object);
+ if (self->priv->clock_update_id) {
+ g_source_remove (self->priv->clock_update_id);
+ self->priv->clock_update_id = 0;
+ }
+
if (self->priv->tz_monitor != NULL) {
g_object_unref (self->priv->tz_monitor);
self->priv->tz_monitor = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]