[gimp] app: fix small leak.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix small leak.
- Date: Mon, 6 Aug 2018 14:53:32 +0000 (UTC)
commit b3add5109c5f2718582bd888ba54cdf563bc3f8a
Author: Jehan <jehan girinstud io>
Date: Mon Aug 6 16:51:39 2018 +0200
app: fix small leak.
Return values of gimp_config_build_*_path() must be properly freed.
app/core/gimpextensionmanager.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/app/core/gimpextensionmanager.c b/app/core/gimpextensionmanager.c
index c04aab927e..790a28424e 100644
--- a/app/core/gimpextensionmanager.c
+++ b/app/core/gimpextensionmanager.c
@@ -481,6 +481,7 @@ gimp_extension_manager_initialize (GimpExtensionManager *manager)
/* List user-installed extensions. */
path_str = gimp_config_build_writable_path ("extensions");
path = gimp_config_path_expand_to_files (path_str, NULL);
+ g_free (path_str);
for (list = path; list; list = g_list_next (list))
gimp_extension_manager_search_directory (manager, list->data, FALSE);
g_list_free_full (path, (GDestroyNotify) g_object_unref);
@@ -488,6 +489,7 @@ gimp_extension_manager_initialize (GimpExtensionManager *manager)
/* List system extensions. */
path_str = gimp_config_build_system_path ("extensions");
path = gimp_config_path_expand_to_files (path_str, NULL);
+ g_free (path_str);
for (list = path; list; list = g_list_next (list))
gimp_extension_manager_search_directory (manager, list->data, TRUE);
g_list_free_full (path, (GDestroyNotify) g_object_unref);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]