[epiphany/wip/exalm/firefox-import: 1/3] window-commands: Fix a leak when gathering Firefox profiles
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/exalm/firefox-import: 1/3] window-commands: Fix a leak when gathering Firefox profiles
- Date: Tue, 30 Nov 2021 09:01:17 +0000 (UTC)
commit 55a7531d5145a7bc132168ddfd026136706a320d
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Nov 30 13:29:21 2021 +0500
window-commands: Fix a leak when gathering Firefox profiles
src/window-commands.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/window-commands.c b/src/window-commands.c
index a6bc16b6b..0878fd8c8 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -210,7 +210,7 @@ firefox_exists (void)
firefox_profiles = get_firefox_profiles ();
has_firefox_profile = g_slist_length (firefox_profiles) > 0;
- g_slist_free (firefox_profiles);
+ g_slist_free_full (firefox_profiles, g_free);
return has_firefox_profile;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]