[gtk+/wip/baedert/children: 36/36] switch: Unref child widgets
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/children: 36/36] switch: Unref child widgets
- Date: Wed, 7 Dec 2016 17:28:17 +0000 (UTC)
commit e53775cb1ff8f00ee5ac5bc7eeda79c60a30df72
Author: Timm Bäder <mail baedert org>
Date: Wed Dec 7 14:27:50 2016 +0100
switch: Unref child widgets
gtk/gtkswitch.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index a6d683a..ab108e1 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -679,7 +679,10 @@ gtk_switch_dispose (GObject *object)
static void
gtk_switch_finalize (GObject *object)
{
+ GtkSwitchPrivate *priv = GTK_SWITCH (object)->priv;
gtk_switch_end_toggle_animation (GTK_SWITCH (object));
+ g_object_unref (priv->on_label);
+ g_object_unref (priv->off_label);
G_OBJECT_CLASS (gtk_switch_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]