summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Engber <engber@src.gnome.org>2000-07-06 21:31:18 +0000
committerMike Engber <engber@src.gnome.org>2000-07-06 21:31:18 +0000
commit67d85d6f3aaee4759bbe8d1284f90829afb7f7b8 (patch)
tree4360581c0cdbb5d9a35eb345d7151a8a202b7ea5
parent1566f160fe57a00f1648883091294b79621c71c5 (diff)
downloadnautilus-67d85d6f3aaee4759bbe8d1284f90829afb7f7b8.tar.gz
NULL out preferred_zoom_levels in the destroy method (after freeing them)
* src/nautilus-zoom-control.c: (nautilus_zoom_control_destroy): NULL out preferred_zoom_levels in the destroy method (after freeing them) in case someone looks at them before finalize.
-rw-r--r--ChangeLog6
-rw-r--r--src/nautilus-zoom-control.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b9468cebb..710a1d59f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-07-06 Michael Engber <engber@eazel.com>
+
+ * src/nautilus-zoom-control.c: (nautilus_zoom_control_destroy):
+ NULL out preferred_zoom_levels in the destroy method (after
+ freeing them) in case someone looks at them before finalize.
+
2000-07-05 Robin * Slomkowski <rslomkow@eazel.com>
* nautilus.spec.in: removed refernce to some *.svg files
diff --git a/src/nautilus-zoom-control.c b/src/nautilus-zoom-control.c
index f4f152523..33550ea49 100644
--- a/src/nautilus-zoom-control.c
+++ b/src/nautilus-zoom-control.c
@@ -156,6 +156,7 @@ static void
nautilus_zoom_control_destroy (GtkObject *object)
{
nautilus_g_list_free_deep (NAUTILUS_ZOOM_CONTROL (object)->preferred_zoom_levels);
+ NAUTILUS_ZOOM_CONTROL (object)->preferred_zoom_levels = NULL;
NAUTILUS_CALL_PARENT_CLASS (GTK_OBJECT_CLASS, destroy, (object));
}