summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-12 15:01:43 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-12 15:01:43 (EDT)
commit74527e4f0a274687d8eb5a542e122d2560ff9049 (patch)
tree02657b5ba5b48b30f5713850f804f37187e80100
parentf40afc0af938a56c4d451e56487c587e5e40eb76 (diff)
downloadmarquee-74527e4f0a274687d8eb5a542e122d2560ff9049.zip
marquee-74527e4f0a274687d8eb5a542e122d2560ff9049.tar.gz
marquee-74527e4f0a274687d8eb5a542e122d2560ff9049.tar.bz2
MqFindToolbar: Add dispose method
-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;