cpw.rekkanoryo.prefs_window: ccaa3f49: Don't leak path.

qulogic at pidgin.im qulogic at pidgin.im
Mon Nov 16 03:15:56 EST 2009


-----------------------------------------------------------------
Revision: ccaa3f4966cf3d09102b8520524d34560d78fc97
Ancestor: 12c2100ac412ff451374a355ad49574cd5fd5c48
Author: qulogic at pidgin.im
Date: 2009-11-16T07:45:34
Branch: im.pidgin.cpw.rekkanoryo.prefs_window
URL: http://d.pidgin.im/viewmtn/revision/info/ccaa3f4966cf3d09102b8520524d34560d78fc97

Modified files:
        pidgin/gtkprefs.c

ChangeLog: 

Don't leak path.

-------------- next part --------------
============================================================
--- pidgin/gtkprefs.c	e5bbbdd67d7e0478234812c02929d5130b882372
+++ pidgin/gtkprefs.c	3bc4d204976f45849852089cc55d66a89eddae33
@@ -1887,6 +1887,7 @@ browser_page(void)
 			gtk_box_pack_start(GTK_BOX(hbox), browser_button, FALSE, FALSE, 0);
 		}
 
+		g_free(path);
 		gtk_widget_show_all(ret);
 	} else {
 		sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
@@ -1960,7 +1961,7 @@ proxy_page(void)
 		hbox = gtk_hbox_new(FALSE, PIDGIN_HIG_BOX_SPACE);
 		gtk_container_add(GTK_CONTAINER(vbox), hbox);
 
-		if(path == NULL) {
+		if (path == NULL) {
 			label = gtk_label_new(NULL);
 			gtk_label_set_markup(GTK_LABEL(label),
 								 _("<b>Proxy configuration program was not found.</b>"));
@@ -1972,6 +1973,7 @@ proxy_page(void)
 			gtk_box_pack_start(GTK_BOX(hbox), proxy_button, FALSE, FALSE, 0);
 		}
 
+		g_free(path);
 		gtk_widget_show_all(ret);
 	} else {
 		prefs_proxy_subframe = gtk_vbox_new(FALSE, 0);


More information about the Commits mailing list