# HG changeset patch # User Daniel Atallah # Date 1212465194 0 # Node ID 242fd82b5fe6c87ae3bf469eb0d3961e53f9ea42 # Parent 775994d4913664eb2a0451a64d2b0ca194ea1677 Prevent double freeing when we don't get the proxy data we're expecting from gconftool. Fixes #5663. diff -r 775994d49136 -r 242fd82b5fe6 libpurple/proxy.c --- a/libpurple/proxy.c Tue Jun 03 00:10:46 2008 +0000 +++ b/libpurple/proxy.c Tue Jun 03 03:53:14 2008 +0000 @@ -265,6 +265,7 @@ "'manual' but no proxy server is specified. Using " "Pidgin's proxy settings instead.\n"); g_free(info.host); + info.host = NULL; return purple_global_proxy_get_info(); } @@ -272,6 +273,7 @@ &info.username, NULL, NULL, NULL)) { g_free(info.host); + info.host = NULL; return purple_global_proxy_get_info(); } g_strchomp(info.username); @@ -280,7 +282,9 @@ &info.password, NULL, NULL, NULL)) { g_free(info.host); + info.host = NULL; g_free(info.username); + info.username = NULL; return purple_global_proxy_get_info(); } g_strchomp(info.password); @@ -289,8 +293,11 @@ &tmp, NULL, NULL, NULL)) { g_free(info.host); + info.host = NULL; g_free(info.username); + info.username = NULL; g_free(info.password); + info.password = NULL; return purple_global_proxy_get_info(); } info.port = atoi(tmp);