[nautilus/wip/antoniof/meets-valgrind: 4/11] toolbar: Don't leak builder object
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/meets-valgrind: 4/11] toolbar: Don't leak builder object
- Date: Tue, 22 Dec 2020 16:27:19 +0000 (UTC)
commit 7a6e27e8ff6c803d9f954affca84f643f07fc182
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]