aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-main.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-02-02 03:40:51 +0800
committerChristian Persch <chpe@src.gnome.org>2005-02-02 03:40:51 +0800
commitc0d392cbae39f50fd029c58fac14a95b5a5f2cc3 (patch)
tree900e64fae9878f375e0c7cb88bad5fe84bb6731d /src/ephy-main.c
parent6345432b15c7ce20dad3844d72592e8ecbbe1577 (diff)
downloadgsoc2013-epiphany-c0d392cbae39f50fd029c58fac14a95b5a5f2cc3.tar.gz
gsoc2013-epiphany-c0d392cbae39f50fd029c58fac14a95b5a5f2cc3.tar.zst
gsoc2013-epiphany-c0d392cbae39f50fd029c58fac14a95b5a5f2cc3.zip
Don't weak ref the shell when it's finalised already. Fixes bug #165542.
2005-02-01 Christian Persch <chpe@cvs.gnome.org> * src/ephy-main.c: (main): * src/ephy-shell.c: (ephy_shell_finalize): Don't weak ref the shell when it's finalised already. Fixes bug #165542.
Diffstat (limited to 'src/ephy-main.c')
-rw-r--r--src/ephy-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ephy-main.c b/src/ephy-main.c
index 2a02abc81..de6350cf7 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -208,7 +208,7 @@ main (int argc, char *argv[])
GTK_MESSAGE_ERROR, err->message);
gtk_dialog_run (GTK_DIALOG (dialog));
}
- else if (new_instance)
+ else if (new_instance && ephy_shell)
{
g_object_weak_ref (G_OBJECT (ephy_shell), shell_weak_notify, NULL);
g_idle_add ((GSourceFunc) idle_unref, ephy_shell);