aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
+ }
}