From 803a26446cdd134d213780d01098cdfccd650846 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Thu, 11 Dec 2008 18:13:13 +0000 Subject: [PATCH] Fix usage of uninitialized window stack in fremantle win mgr pmo-trunk-r6793 --- src/hildon2/modest-hildon2-window-mgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hildon2/modest-hildon2-window-mgr.c b/src/hildon2/modest-hildon2-window-mgr.c index d421199..41d2b3e 100644 --- a/src/hildon2/modest-hildon2-window-mgr.c +++ b/src/hildon2/modest-hildon2-window-mgr.c @@ -350,6 +350,8 @@ modest_hildon2_window_mgr_register_window (ModestWindowMgr *self, return TRUE; } + stack = hildon_window_stack_get_default (); + if (!MODEST_WINDOW_MGR_CLASS (parent_class)->register_window (self, window, parent)) goto fail; @@ -357,7 +359,6 @@ modest_hildon2_window_mgr_register_window (ModestWindowMgr *self, g_object_ref (window); priv->window_list = g_list_prepend (priv->window_list, window); - stack = hildon_window_stack_get_default (); current_top = hildon_window_stack_peek (stack); /* TODO: rethink this method it will be different depending on -- 1.7.9.5