# HG changeset patch # User Mark Doliner # Date 1204740662 0 # Node ID 6eb0749ad46c34c534f4e1514541998a542bf35a # Parent c5a3a92255f58a030c78c882582add97621b81a3 disapproval of revision 'd5ef30aafa0c0ecff773017ab7ac542f9ba7b4b4' diff -r c5a3a92255f5 -r 6eb0749ad46c libpurple/proxy.c --- a/libpurple/proxy.c Wed Mar 05 09:40:16 2008 +0000 +++ b/libpurple/proxy.c Wed Mar 05 18:11:02 2008 +0000 @@ -233,6 +233,20 @@ g_free(tmp); info.type = PURPLE_PROXY_HTTP; + /* Free the old fields */ + if (info.host) { + g_free(info.host); + info.host = NULL; + } + if (info.username) { + g_free(info.username); + info.username = NULL; + } + if (info.password) { + g_free(info.password); + info.password = NULL; + } + /* Get the new ones */ if (!g_spawn_command_line_sync("gconftool-2 -g /system/http_proxy/host", &info.host, NULL, NULL, NULL))