From c44364f1d1a0295034e7c59afdcf49870334f785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 10 Feb 2016 12:30:35 +0100 Subject: [PATCH] spinbutton: Free the gadget in finalize --- gtk/gtkspinbutton.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c index e76a1e737f..59215aa91e 100644 --- a/gtk/gtkspinbutton.c +++ b/gtk/gtkspinbutton.c @@ -852,6 +852,7 @@ gtk_spin_button_finalize (GObject *object) GtkSpinButtonPrivate *priv = spin_button->priv; gtk_spin_button_unset_adjustment (spin_button); + g_clear_object (&priv->gadget); g_object_unref (priv->swipe_gesture);