[epiphany] embed-prefs: free variable a bit sooner
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] embed-prefs: free variable a bit sooner
- Date: Mon, 30 Jan 2017 03:56:58 +0000 (UTC)
commit 49739184c49efeb1addb6816e5e44aeb6e05a927
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Jan 29 21:53:41 2017 -0600
embed-prefs: free variable a bit sooner
This does not fix anything, but it makes the function a bit easier to
read by clarifying that languages is not used again later on. The code
is sufficiently confusing that this seems beneficial here.
https://bugzilla.gnome.org/show_bug.cgi?id=682723
embed/ephy-embed-prefs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-embed-prefs.c b/embed/ephy-embed-prefs.c
index dcdddee..78c1fc1 100644
--- a/embed/ephy-embed-prefs.c
+++ b/embed/ephy-embed-prefs.c
@@ -364,6 +364,7 @@ webkit_pref_callback_accept_languages (GSettings *settings,
g_array_append_val (array, str);
}
}
+ g_strfreev (languages);
ephy_langs_sanitise (array);
@@ -379,7 +380,6 @@ webkit_pref_callback_accept_languages (GSettings *settings,
g_strfreev (normalized);
}
- g_strfreev (languages);
for (i = 0; i < array->len; i++)
g_free (g_array_index (array, char *, i));
g_array_free (array, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]