[gtk/wip/matthiasc/context-menu: 18/30] color editor: Don't leak adjustments



commit 43ea83cefc057eebb1f7577f940e06db40bd7d7e
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jun 12 00:56:40 2019 +0000

    color editor: Don't leak adjustments

 gtk/gtkcoloreditor.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtkcoloreditor.c b/gtk/gtkcoloreditor.c
index 5f341ffe58..6a43b7e3d2 100644
--- a/gtk/gtkcoloreditor.c
+++ b/gtk/gtkcoloreditor.c
@@ -433,6 +433,9 @@ gtk_color_editor_dispose (GObject *object)
 
   dismiss_current_popup (editor);
   g_clear_object (&editor->priv->picker);
+  g_clear_object (&editor->priv->h_adj);
+  g_clear_object (&editor->priv->s_adj);
+  g_clear_object (&editor->priv->v_adj);
 
   G_OBJECT_CLASS (gtk_color_editor_parent_class)->dispose (object);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]