summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/frames.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 175bca0f..61a60cdd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2002-06-01 Havoc Pennington <hp@pobox.com>
+ * src/frames.c (meta_frames_finalize): move the remove_listener
+ to finalize instead of destroy, thanks to Jayaraj for tracking
+ down the bug.
+
+2002-06-01 Havoc Pennington <hp@pobox.com>
+
* src/session.c: add some missing \n
(meta_session_init): remove the #if 0 interact callback from our
initial SmcOpenConnection call, this arg to SmcOpenConnection
diff --git a/src/frames.c b/src/frames.c
index 0a07e81e..c7cba2a5 100644
--- a/src/frames.c
+++ b/src/frames.c
@@ -205,8 +205,6 @@ meta_frames_destroy (GtkObject *object)
MetaFrames *frames;
frames = META_FRAMES (object);
-
- meta_prefs_remove_listener (font_changed_callback, frames);
clear_tip (frames);
@@ -239,6 +237,8 @@ meta_frames_finalize (GObject *object)
frames = META_FRAMES (object);
+ meta_prefs_remove_listener (font_changed_callback, frames);
+
g_hash_table_destroy (frames->text_heights);
g_assert (g_hash_table_size (frames->frames) == 0);