summaryrefslogtreecommitdiff
path: root/src/frames.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-06-02 00:24:31 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-06-02 00:24:31 +0000
commitd5bcea27e3ba9edd745657f909ed6b2a8756d224 (patch)
tree4fe28bd7b1cd694cf5897432dc6d08e9e2617bde /src/frames.c
parentd0e109f96cc4137498d42e7a1e688ffd2957892d (diff)
downloadmetacity-d5bcea27e3ba9edd745657f909ed6b2a8756d224.tar.gz
metacity-d5bcea27e3ba9edd745657f909ed6b2a8756d224.tar.bz2
move the remove_listener to finalize instead of destroy, thanks to Jayaraj
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.
Diffstat (limited to 'src/frames.c')
-rw-r--r--src/frames.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frames.c b/src/frames.c
index 0a07e81..c7cba2a 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);