From: Sergio Villar Senin Date: Thu, 23 Oct 2008 17:01:11 +0000 (+0000) Subject: * Fixes NB#90762, initialize and free a private field X-Git-Tag: git_migration_finished~1108 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=f027aeec354ec9c5ea3432ccd6ae544cce43f696;ds=sidebyside * Fixes NB#90762, initialize and free a private field pmo-trunk-r6151 --- diff --git a/src/widgets/modest-window-mgr.c b/src/widgets/modest-window-mgr.c index 5ee28b9..6da29ad 100644 --- a/src/widgets/modest-window-mgr.c +++ b/src/widgets/modest-window-mgr.c @@ -217,6 +217,8 @@ modest_window_mgr_init (ModestWindowMgr *obj) priv->cached_view = NULL; priv->cached_editor = NULL; + + priv->windows_that_prevent_hibernation = NULL; } static void @@ -243,6 +245,11 @@ modest_window_mgr_finalize (GObject *obj) priv->cached_editor = NULL; } + if (priv->windows_that_prevent_hibernation) { + g_slist_free (priv->windows_that_prevent_hibernation); + priv->cached_editor = NULL; + } + g_slist_foreach (priv->preregistered_uids, (GFunc)g_free, NULL); g_slist_free (priv->preregistered_uids);