diff options
author | Owen Taylor <otaylor@redhat.com> | 2000-12-11 15:04:36 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2000-12-11 15:04:36 +0000 |
commit | 116853db94f841c81565ecd8cd94302143e3dda8 (patch) | |
tree | d083c5af06eeec28e296065de2bd0c96d70bb55f /gtk/gtkimcontextsimple.c | |
parent | a2a237101aedcae66b752181b3031d80e9162fdd (diff) | |
download | gtk+-116853db94f841c81565ecd8cd94302143e3dda8.tar.gz |
Fix up finalizer to chain to its parent.
Mon Dec 11 10:02:26 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize):
Fix up finalizer to chain to its parent.
Diffstat (limited to 'gtk/gtkimcontextsimple.c')
-rw-r--r-- | gtk/gtkimcontextsimple.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c index 78c254728a..4b346dc9c3 100644 --- a/gtk/gtkimcontextsimple.c +++ b/gtk/gtkimcontextsimple.c @@ -802,7 +802,15 @@ gtk_im_context_simple_finalize (GObject *obj) { GtkIMContextSimple *context_simple = GTK_IM_CONTEXT_SIMPLE (obj); - g_slist_free (context_simple->tables); + if (context_simple->tables) + { + g_slist_foreach (context_simple->tables, (GFunc)g_free, NULL); + g_slist_free (context_simple->tables); + + context_simple->tables = NULL; + } + + parent_class->finalize (obj); } GtkIMContext * |