[epiphany/gnome-41] window-commands: Fix a leak when gathering Firefox profiles
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-41] window-commands: Fix a leak when gathering Firefox profiles
- Date: Tue, 30 Nov 2021 20:38:51 +0000 (UTC)
commit e2f2abd8cdd4ad583065510f0d2c6c9b8e8cd0be
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Nov 30 13:29:21 2021 +0500
window-commands: Fix a leak when gathering Firefox profiles
Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1036>
(cherry picked from commit 0091ce54c1481b1a20aee8b76057715f430fb1a4)
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 8744ae10f..826edbf0b 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]