From: Sergio Villar Senin Date: Fri, 5 Jun 2009 11:35:22 +0000 (+0200) Subject: Fixes NB120950, crash in time_changed_cb() X-Git-Tag: 3.0.17-rc11~3 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=b370fe7b0360f7c9381fca8e04bef9b117ceef80 Fixes NB120950, crash in time_changed_cb() The problem was that we weren't disconnecting time notifications in datetime formatters when they were finalized --- 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); }