[gtk+] places sidebar: Always chain up in finalize
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] places sidebar: Always chain up in finalize
- Date: Wed, 22 Jul 2015 01:19:08 +0000 (UTC)
commit 94187127821a31b3367ce7b60d4bd5f8e874f6cd
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jul 21 19:51:50 2015 -0400
places sidebar: Always chain up in finalize
The GtkSidebarRow class was forgetting to do this. The visible
symptom of this in valgrind is that you notice GObject data
being leaked.
gtk/gtksidebarrow.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtksidebarrow.c b/gtk/gtksidebarrow.c
index 64e1b20..e6470f1 100644
--- a/gtk/gtksidebarrow.c
+++ b/gtk/gtksidebarrow.c
@@ -298,6 +298,8 @@ gtk_sidebar_row_finalize (GObject *object)
g_clear_object (&self->drive);
g_clear_object (&self->volume);
g_clear_object (&self->mount);
+
+ G_OBJECT_CLASS (gtk_sidebar_row_parent_class)->finalize (object);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]