[gtksourceview] Plug a small leak in the encodings list
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Plug a small leak in the encodings list
- Date: Sat, 5 Sep 2015 08:30:26 +0000 (UTC)
commit 76c5cad4787fc240f3394708e7c410fff0f4b7a0
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Sep 5 10:14:56 2015 +0200
Plug a small leak in the encodings list
gtksourceview/gtksourceencoding.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourceencoding.c b/gtksourceview/gtksourceencoding.c
index a6fb094..aeb9467 100644
--- a/gtksourceview/gtksourceencoding.c
+++ b/gtksourceview/gtksourceencoding.c
@@ -683,8 +683,8 @@ gtk_source_encoding_get_default_candidates (void)
g_variant_ref_sink (encodings_variant);
encodings_strv = g_variant_get_strv (encodings_variant, NULL);
-
encodings_list = strv_to_list (encodings_strv);
+ g_free (encodings_strv);
/* Ensure that UTF-8 and CURRENT are present. */
encodings_list = g_slist_prepend (encodings_list,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]