From f027aeec354ec9c5ea3432ccd6ae544cce43f696 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Thu, 23 Oct 2008 17:01:11 +0000 Subject: [PATCH] * Fixes NB#90762, initialize and free a private field pmo-trunk-r6151 --- src/widgets/modest-window-mgr.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 1.7.9.5