From 30f3dc04610a3a5dcc033bd9722a6159a6db5b5a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Forysiuk?= Date: Wed, 20 Oct 2010 23:47:14 +0200 Subject: [PATCH] Clean up redundant item lists from addons helpers --- extensions/addons.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/extensions/addons.c b/extensions/addons.c index 7c6e7dd2..b3b5d0d8 100644 --- a/extensions/addons.c +++ b/extensions/addons.c @@ -517,7 +517,6 @@ static void addons_free_elements (GSList* elements) { struct AddonElement* element; - GSList* start = elements; while (elements) { @@ -531,8 +530,6 @@ addons_free_elements (GSList* elements) elements = g_slist_next (elements); } - - g_slist_free (start); } static void @@ -708,6 +705,7 @@ addons_get_files (AddonsKind kind) } g_free (file_extension); + g_slist_free (directories); return files; } @@ -952,7 +950,6 @@ addons_update_elements (MidoriExtension* extension, AddonsKind kind) { GSList* addon_files; - GSList* files_list; gchar* name; gchar* fullpath; struct AddonElement* element; @@ -993,7 +990,6 @@ addons_update_elements (MidoriExtension* extension, g_key_file_load_from_file (keyfile, config_file, G_KEY_FILE_NONE, NULL); addon_files = addons_get_files (kind); - files_list = addon_files; elements = NULL; while (addon_files) @@ -1066,7 +1062,6 @@ addons_update_elements (MidoriExtension* extension, addon_files = g_slist_next (addon_files); elements = g_slist_prepend (elements, element); } - g_slist_free (files_list); g_free (config_file); g_key_file_free (keyfile); -- 2.39.5