summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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;