aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-05-26 01:56:51 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-05-26 01:56:51 +0800
commitf554cdac20348aa1ead34e2a83a9742d06556832 (patch)
treeb2a8d7f2783ce50ddb4bf20f58e8875e52120650 /lib
parentee8f00175fc21b994eed32a4e44770d639444254 (diff)
downloadgsoc2013-epiphany-f554cdac20348aa1ead34e2a83a9742d06556832.tar
gsoc2013-epiphany-f554cdac20348aa1ead34e2a83a9742d06556832.tar.gz
gsoc2013-epiphany-f554cdac20348aa1ead34e2a83a9742d06556832.tar.bz2
gsoc2013-epiphany-f554cdac20348aa1ead34e2a83a9742d06556832.tar.lz
gsoc2013-epiphany-f554cdac20348aa1ead34e2a83a9742d06556832.tar.xz
gsoc2013-epiphany-f554cdac20348aa1ead34e2a83a9742d06556832.tar.zst
gsoc2013-epiphany-f554cdac20348aa1ead34e2a83a9742d06556832.zip
Fix nautilus view crash
2003-05-25 Marco Pesenti Gritti <marco@it.gnome.org> * lib/ephy-state.c: (ephy_state_save): Fix nautilus view crash
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-state.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/ephy-state.c b/lib/ephy-state.c
index 90d06883c..1df65a642 100644
--- a/lib/ephy-state.c
+++ b/lib/ephy-state.c
@@ -437,9 +437,12 @@ ephy_state_add_paned (GtkWidget *paned,
void
ephy_state_save (void)
{
- ephy_states_save ();
- ephy_node_unref (states);
- g_object_unref (states_db);
- states = NULL;
- states_db = NULL;
+ if (states)
+ {
+ ephy_states_save ();
+ ephy_node_unref (states);
+ g_object_unref (states_db);
+ states = NULL;
+ states_db = NULL;
+ }
}