[sound-juicer/wip/hadess/unescape-proxy-username: 4/6] libjuicer: Use g_auto to free string array
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sound-juicer/wip/hadess/unescape-proxy-username: 4/6] libjuicer: Use g_auto to free string array
- Date: Tue, 10 Dec 2019 12:24:35 +0000 (UTC)
commit 1321fc356661b88c1ed2d8764dd6a506b7576661
Author: Bastien Nocera <hadess hadess net>
Date: Tue Dec 10 13:19:29 2019 +0100
libjuicer: Use g_auto to free string array
libjuicer/sj-metadata-getter.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/libjuicer/sj-metadata-getter.c b/libjuicer/sj-metadata-getter.c
index f2f94e47..4e850e39 100644
--- a/libjuicer/sj-metadata-getter.c
+++ b/libjuicer/sj-metadata-getter.c
@@ -113,7 +113,7 @@ set_http_proxy (SjMetadata *metadata,
const char *host;
guint port;
const char *userinfo;
- char **user_strv;
+ g_auto(GStrv) user_strv = NULL;
uri = gst_uri_from_string (proxy_url);
if (!uri) {
@@ -155,7 +155,6 @@ set_http_proxy (SjMetadata *metadata,
"proxy-password", user_strv[1],
"proxy-use-authentication", TRUE,
NULL);
- g_strfreev (user_strv);
finish:
gst_uri_unref (uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]