[nautilus] view: plug some memory leaks
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] view: plug some memory leaks
- Date: Sat, 24 Jan 2015 01:08:51 +0000 (UTC)
commit daaa0aaa217ac402238b180d3d30f29913245ce6
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Jan 20 23:27:11 2015 -0800
view: plug some memory leaks
src/nautilus-view.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index 4e88f92..fa3b24b 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -4327,6 +4327,7 @@ update_scripts_menu (NautilusView *view)
submenu,
"scripts-submenu",
TRUE);
+ g_object_unref (submenu);
}
view->details->scripts_present = submenu != NULL;
@@ -4392,6 +4393,7 @@ add_template_to_templates_menus (NautilusView *view,
g_free (uri);
g_free (action_name);
g_free (detailed_action_name);
+ g_object_unref (menu_item);
}
static void
@@ -4550,6 +4552,7 @@ update_templates_menu (NautilusView *view)
submenu,
"templates-submenu",
FALSE);
+ g_object_unref (submenu);
}
view->details->templates_present = submenu != NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]