pidgin: d5ef30aa: These things are always NULL, so these i...

markdoliner at pidgin.im markdoliner at pidgin.im
Wed Mar 5 04:46:34 EST 2008


-----------------------------------------------------------------
Revision: d5ef30aafa0c0ecff773017ab7ac542f9ba7b4b4
Ancestor: cce3a22f53972bd3834175b08ad5e7b800bf98e9
Author: markdoliner at pidgin.im
Date: 2008-03-05T09:40:16
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/d5ef30aafa0c0ecff773017ab7ac542f9ba7b4b4

Modified files:
        libpurple/proxy.c

ChangeLog: 

These things are always NULL, so these if statements are never triggered

-------------- next part --------------
============================================================
--- libpurple/proxy.c	45e4aac50312fd1e9ef984a960f6ec0b93a071ce
+++ libpurple/proxy.c	9abf282dcfa5e1d8478ffd47ae6e200e87003af0
@@ -233,20 +233,6 @@ purple_gnome_proxy_get_info(void)
 		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))


More information about the Commits mailing list