aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-11-12 01:57:51 +0800
committerChristian Persch <chpe@src.gnome.org>2004-11-12 01:57:51 +0800
commit6a9df196108b4a27ec27a35e948dc5566f6bd8c6 (patch)
tree309ce210bdc42efd100631b7d051f6392aa125d8 /src
parent48436a86ce3d1ae80d1cec50244022d298a4dc9f (diff)
downloadgsoc2013-epiphany-6a9df196108b4a27ec27a35e948dc5566f6bd8c6.tar
gsoc2013-epiphany-6a9df196108b4a27ec27a35e948dc5566f6bd8c6.tar.gz
gsoc2013-epiphany-6a9df196108b4a27ec27a35e948dc5566f6bd8c6.tar.bz2
gsoc2013-epiphany-6a9df196108b4a27ec27a35e948dc5566f6bd8c6.tar.lz
gsoc2013-epiphany-6a9df196108b4a27ec27a35e948dc5566f6bd8c6.tar.xz
gsoc2013-epiphany-6a9df196108b4a27ec27a35e948dc5566f6bd8c6.tar.zst
gsoc2013-epiphany-6a9df196108b4a27ec27a35e948dc5566f6bd8c6.zip
Keep a ref on EphyShell in ephy_session_close(). Otherwise we get a crash
2004-11-11 Christian Persch <chpe@cvs.gnome.org> * src/ephy-session.c: (ephy_session_close): Keep a ref on EphyShell in ephy_session_close(). Otherwise we get a crash when the session manager sends us the "die" signal, and we don't have a tool window (bme, history) open.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-session.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 365cdc4be..bff2a1330 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -480,6 +480,11 @@ ephy_session_close (EphySession *session)
LOG ("ephy_session_close")
+ /* we have to ref the shell or else we may get finalised between
+ * destroying the windows and destroying the tool windows
+ */
+ g_object_ref (ephy_shell);
+
windows = ephy_session_get_windows (session);
g_list_foreach (windows, (GFunc) gtk_widget_destroy, NULL);
g_list_free (windows);
@@ -487,6 +492,8 @@ ephy_session_close (EphySession *session)
windows = g_list_copy (session->priv->tool_windows);
g_list_foreach (windows, (GFunc) gtk_widget_destroy, NULL);
g_list_free (windows);
+
+ g_object_unref (ephy_shell);
}
static int