From: <dat...@us...> - 2006-08-10 21:23:00
|
Revision: 16689 Author: datallah Date: 2006-08-10 14:22:55 -0700 (Thu, 10 Aug 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16689&view=rev Log Message: ----------- Plug a leak that I didn't notice while making the other fixes. Modified Paths: -------------- trunk/src/protocols/jabber/buddy.c Modified: trunk/src/protocols/jabber/buddy.c =================================================================== --- trunk/src/protocols/jabber/buddy.c 2006-08-10 21:08:00 UTC (rev 16688) +++ trunk/src/protocols/jabber/buddy.c 2006-08-10 21:22:55 UTC (rev 16689) @@ -533,7 +533,7 @@ GaimRequestField *field; const struct vcard_template *vc_tp; const char *user_info; - char *cdata; + char *cdata = NULL; xmlnode *x_vc_data = NULL; fields = gaim_request_fields_new(); @@ -564,10 +564,7 @@ } if(data_node) cdata = xmlnode_get_data(data_node); - else - cdata = NULL; - } else - cdata = NULL; + } if(strcmp(vc_tp->tag, "DESC") == 0) { field = gaim_request_field_string_new(vc_tp->tag, @@ -579,6 +576,9 @@ FALSE); } + g_free(cdata); + cdata = NULL; + gaim_request_field_group_add_field(group, field); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |