[gtk/checkbutton-fixes: 1/3] checkbutton: Don't leak the action helper
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/checkbutton-fixes: 1/3] checkbutton: Don't leak the action helper
- Date: Tue, 1 Sep 2020 19:27:02 +0000 (UTC)
commit 1c0bf2604ccb4562923dc368277257bc64398e5b
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Sep 1 15:24:34 2020 -0400
checkbutton: Don't leak the action helper
gtk/gtkcheckbutton.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index 13aa7fb6cd..d7ba59c63e 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -111,6 +111,8 @@ gtk_check_button_dispose (GObject *object)
{
GtkCheckButtonPrivate *priv = gtk_check_button_get_instance_private (GTK_CHECK_BUTTON (object));
+ g_clear_object (&priv->action_helper);
+
g_clear_pointer (&priv->indicator_widget, gtk_widget_unparent);
g_clear_pointer (&priv->label_widget, gtk_widget_unparent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]