[gnome-builder] layout: plug leak in layout view
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] layout: plug leak in layout view
- Date: Thu, 14 Dec 2017 06:17:47 +0000 (UTC)
commit db6d9806bd1441e61935901f9509c599297d91f6
Author: Christian Hergert <chergert redhat com>
Date: Wed Dec 13 22:17:20 2017 -0800
layout: plug leak in layout view
src/libide/layout/ide-layout-view.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/libide/layout/ide-layout-view.c b/src/libide/layout/ide-layout-view.c
index 9729954..98da42b 100644
--- a/src/libide/layout/ide-layout-view.c
+++ b/src/libide/layout/ide-layout-view.c
@@ -115,6 +115,17 @@ ide_layout_view_grab_focus (GtkWidget *widget)
}
static void
+ide_layout_view_finalize (GObject *object)
+{
+ IdeLayoutView *self = (IdeLayoutView *)object;
+ IdeLayoutViewPrivate *priv = ide_layout_view_get_instance_private (self);
+
+ g_clear_pointer (&priv->title, g_free);
+
+ G_OBJECT_CLASS (ide_layout_view_parent_class)->finalize (object);
+}
+
+static void
ide_layout_view_get_property (GObject *object,
guint prop_id,
GValue *value,
@@ -214,6 +225,7 @@ ide_layout_view_class_init (IdeLayoutViewClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
+ object_class->finalize = ide_layout_view_finalize;
object_class->get_property = ide_layout_view_get_property;
object_class->set_property = ide_layout_view_set_property;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]