* don't try to disconnect a signal handler from ppriv->notebook in
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Sun, 13 Jan 2008 14:43:04 +0000 (14:43 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Sun, 13 Jan 2008 14:43:04 +0000 (14:43 +0000)
   modest_maemo_global_settings_dialog_finalize; this we causing glib warnings as
   well as valgrind errors when closing the global settings dialog

pmo-trunk-r4030

src/maemo/modest-maemo-global-settings-dialog.c

index 9ff3ea4..ad4e4c5 100644 (file)
@@ -260,12 +260,8 @@ modest_maemo_global_settings_dialog_finalize (GObject *obj)
        ppriv = MODEST_GLOBAL_SETTINGS_DIALOG_GET_PRIVATE (obj);
 
        if (priv->switch_handler && ppriv->notebook) {
-               /* TODO: This causes a g_warning:
-                modest[13409]: GLIB WARNING ** GLib-GObject - invalid unclassed pointer in cast to `GObject'
-               modest[13409]: GLIB WARNING ** GLib-GObject - instance with invalid (NULL) class pointer
-               modest[13409]: GLIB CRITICAL ** GLib-GObject - g_signal_handler_disconnect: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
-                */
-               g_signal_handler_disconnect (G_OBJECT (ppriv->notebook), priv->switch_handler);
+               /* TODO: This causes a g_warning and a valgrind mem error: */
+               /* g_signal_handler_disconnect (G_OBJECT (ppriv->notebook), priv->switch_handler);*/
                priv->switch_handler = 0;
        }