diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c index a01089d88..b909ea940 100644 --- a/src/nautilus-query-editor.c +++ b/src/nautilus-query-editor.c @@ -274,6 +274,19 @@ nautilus_query_editor_set_property (GObject *object, } } +static void +nautilus_query_editor_finalize (GObject *object) +{ + NautilusQueryEditorPrivate *priv; + + priv = nautilus_query_editor_get_instance_private (NAUTILUS_QUERY_EDITOR (object)); + + g_clear_object (&priv->date_range_tag); + g_clear_object (&priv->mime_types_tag); + + G_OBJECT_CLASS (nautilus_query_editor_parent_class)->finalize (object); +} + static void nautilus_query_editor_class_init (NautilusQueryEditorClass *class) { @@ -281,6 +294,7 @@ nautilus_query_editor_class_init (NautilusQueryEditorClass *class) GtkWidgetClass *widget_class; gobject_class = G_OBJECT_CLASS (class); + gobject_class->finalize = nautilus_query_editor_finalize; gobject_class->dispose = nautilus_query_editor_dispose; gobject_class->get_property = nautilus_query_editor_get_property; gobject_class->set_property = nautilus_query_editor_set_property;