summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-13 04:18:40 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-13 04:18:40 (EDT)
commite55e0fa7f4387add6f211c046aeee5da8433a71a (patch)
treee4d49527f4cba7d713c135d90cf496e3db0f2fb5 /src
parent0f3866849d63cbb7b3dfd548f7d260443efd5660 (diff)
downloadmarquee-e55e0fa7f4387add6f211c046aeee5da8433a71a.zip
marquee-e55e0fa7f4387add6f211c046aeee5da8433a71a.tar.gz
marquee-e55e0fa7f4387add6f211c046aeee5da8433a71a.tar.bz2
MqStopReloadButton: Unreference icons on destruction
Diffstat (limited to 'src')
-rw-r--r--src/stop-reload-button.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/stop-reload-button.c b/src/stop-reload-button.c
index 7a006a3..26fbd09 100644
--- a/src/stop-reload-button.c
+++ b/src/stop-reload-button.c
@@ -96,6 +96,19 @@ set_web_view(MqStopReloadButton *stop_reload_button, MqWebView *web_view)
}
static void
+finalize(GObject *object)
+{
+ MqStopReloadButton *stop_reload_button;
+
+ stop_reload_button = MQ_STOP_RELOAD_BUTTON(object);
+
+ g_object_unref(stop_reload_button->stop_icon);
+ g_object_unref(stop_reload_button->reload_icon);
+
+ G_OBJECT_CLASS(mq_stop_reload_button_parent_class)->finalize(object);
+}
+
+static void
get_property(GObject *object, guint property_id, GValue *value,
GParamSpec *pspec)
{
@@ -135,6 +148,7 @@ mq_stop_reload_button_class_init(MqStopReloadButtonClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS(klass);
+ object_class->finalize = finalize;
object_class->get_property = get_property;
object_class->set_property = set_property;