changeset 22417:c5a3a92255f5

These things are always NULL, so these if statements are never triggered
author Mark Doliner <mark@kingant.net>
date Wed, 05 Mar 2008 09:40:16 +0000
parents 0c098ebe9f16
children 6eb0749ad46c 31fb78b1184c
files libpurple/proxy.c
diffstat 1 files changed, 0 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/proxy.c	Wed Mar 05 00:26:44 2008 +0000
+++ b/libpurple/proxy.c	Wed Mar 05 09:40:16 2008 +0000
@@ -233,20 +233,6 @@
 		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))