diff options
author | Stefano Karapetsas <[email protected]> | 2013-01-25 00:20:55 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-01-25 00:20:55 +0100 |
commit | fc50daead311b832fec2991cb87e34a677fc51f6 (patch) | |
tree | 2b9231d681cadd9b0782400bdb638aa47ceeee1e /src | |
parent | ee1e872ab1e1ae04f37b3e960500372082032f50 (diff) | |
download | mate-terminal-fc50daead311b832fec2991cb87e34a677fc51f6.tar.bz2 mate-terminal-fc50daead311b832fec2991cb87e34a677fc51f6.tar.xz |
Free gchar** after use
Diffstat (limited to 'src')
-rw-r--r-- | src/terminal-util.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/terminal-util.c b/src/terminal-util.c index 27f9b79..421169d 100644 --- a/src/terminal-util.c +++ b/src/terminal-util.c @@ -39,6 +39,7 @@ #include "terminal-accels.h" #include "terminal-app.h" +#include "terminal-gsettings.h" #include "terminal-intl.h" #include "terminal-util.h" #include "terminal-window.h" @@ -627,7 +628,8 @@ setup_http_proxy_env (GHashTable *env_table, } g_free (host); - ignore = terminal_gsettings_strv_to_gslist (g_settings_get_strv (settings_http, "ignore-hosts")); + gchar **ignore_strv = g_settings_get_strv (settings_http, "ignore-hosts"); + ignore = terminal_gsettings_strv_to_gslist (ignore_strv); if (ignore) { GString *buf = g_string_sized_new (64); @@ -646,6 +648,8 @@ setup_http_proxy_env (GHashTable *env_table, } set_proxy_env (env_table, "no_proxy", g_string_free (buf, FALSE)); } + if (ignore_strv) + g_strfreev(ignore_strv); } static void |