aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--ChangeLog6
-rw-r--r--lib/ephy-state.c13
2 files changed, 14 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 32910b9e9..05f8559c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-05-25 Marco Pesenti Gritti <marco@it.gnome.org>
+
+ * lib/ephy-state.c: (ephy_state_save):
+
+ Fix nautilus view crash
+
2003-05-16 Christian Persch <chpe+gnomebugz@stud.uni-saarland.de>
* src/window-commands.c: shift force reload
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;
+ }
}