summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/find-toolbar.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/find-toolbar.c b/src/find-toolbar.c
index e0cbd54..1a875b9 100644
--- a/src/find-toolbar.c
+++ b/src/find-toolbar.c
@@ -232,11 +232,25 @@ constructed(GObject *object)
}
static void
+dispose(GObject *object)
+{
+ MqFindToolbar *find_toolbar;
+
+ find_toolbar = MQ_FIND_TOOLBAR(object);
+
+ g_clear_object(&find_toolbar->search_entry);
+ g_clear_object(&find_toolbar->matches_label);
+
+ G_OBJECT_CLASS(mq_find_toolbar_parent_class)->dispose(object);
+}
+
+static void
mq_find_toolbar_class_init(MqFindToolbarClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS(klass);
object_class->constructed = constructed;
+ object_class->dispose = dispose;
object_class->get_property = get_property;
object_class->set_property = set_property;