From b370fe7b0360f7c9381fca8e04bef9b117ceef80 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Fri, 5 Jun 2009 13:35:22 +0200 Subject: [PATCH] Fixes NB120950, crash in time_changed_cb() The problem was that we weren't disconnecting time notifications in datetime formatters when they were finalized --- src/modest-datetime-formatter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modest-datetime-formatter.c b/src/modest-datetime-formatter.c index 69665e0..1597be2 100644 --- a/src/modest-datetime-formatter.c +++ b/src/modest-datetime-formatter.c @@ -228,6 +228,9 @@ modest_datetime_formatter_finalize (GObject *obj) priv->gconf_handler = 0; gconf_client_remove_dir (gconf, HILDON2_GCONF_FORMAT_DIR, NULL); + + /* Disconnect notification */ + osso_time_set_notification_cb (modest_platform_get_osso_context (), NULL, NULL); #endif G_OBJECT_CLASS (parent_class)->finalize (obj); } -- 1.7.9.5