[nautilus/wip/antoniof/meets-valgrind: 9/16] toolbar: Don't leak builder object
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/meets-valgrind: 9/16] toolbar: Don't leak builder object
- Date: Tue, 5 Jan 2021 08:50:26 +0000 (UTC)
commit 85e40ce77fbf5959f5d205f65f839c21d13a5c62
Author: António Fernandes <antoniof gnome org>
Date: Sat Dec 19 17:12:18 2020 +0000
toolbar: Don't leak builder object
src/nautilus-toolbar.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index a64518d8e..89ebac72f 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -892,7 +892,7 @@ on_location_entry_focus_changed (GObject *object,
static void
nautilus_toolbar_constructed (GObject *object)
{
- GtkBuilder *builder;
+ g_autoptr (GtkBuilder) builder = NULL;
NautilusToolbar *self = NAUTILUS_TOOLBAR (object);
builder = gtk_builder_new_from_resource ("/org/gnome/nautilus/ui/nautilus-toolbar-switcher.ui");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]