Clean up user data. (#344624, Christian Weiske)

2006-06-12  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_finalize):
	Clean up user data.  (#344624, Christian Weiske)
This commit is contained in:
Matthias Clasen 2006-06-12 13:42:29 +00:00 committed by Matthias Clasen
parent 84e837769a
commit 6bc87f5d3b
3 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2006-06-12 Matthias Clasen <mclasen@redhat.com> 2006-06-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_finalize):
Clean up user data. (#344624, Christian Weiske)
* NEWS: Updates * NEWS: Updates
* gtk/gtkprintjob.c: * gtk/gtkprintjob.c:

View File

@ -1,5 +1,8 @@
2006-06-12 Matthias Clasen <mclasen@redhat.com> 2006-06-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_finalize):
Clean up user data. (#344624, Christian Weiske)
* NEWS: Updates * NEWS: Updates
* gtk/gtkprintjob.c: * gtk/gtkprintjob.c:

View File

@ -97,7 +97,7 @@ struct _GtkTreeModelFilterPrivate
GType *modify_types; GType *modify_types;
GtkTreeModelFilterModifyFunc modify_func; GtkTreeModelFilterModifyFunc modify_func;
gpointer modify_data; gpointer modify_data;
gpointer modify_destroy; GtkDestroyNotify modify_destroy;
gint visible_column; gint visible_column;
@ -372,6 +372,12 @@ gtk_tree_model_filter_finalize (GObject *object)
if (filter->priv->modify_types) if (filter->priv->modify_types)
g_free (filter->priv->modify_types); g_free (filter->priv->modify_types);
if (filter->priv->modify_destroy)
filter->priv->modify_destroy (filter->priv->modify_data);
if (filter->priv->visible_destroy)
filter->priv->visible_destroy (filter->priv->visible_data);
/* must chain up */ /* must chain up */
G_OBJECT_CLASS (gtk_tree_model_filter_parent_class)->finalize (object); G_OBJECT_CLASS (gtk_tree_model_filter_parent_class)->finalize (object);