Mercurial > pidgin
comparison src/protocols/jabber/buddy.c @ 14068:6cb8bdc3366f
[gaim-migrate @ 16689]
Plug a leak that I didn't notice while making the other fixes.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 10 Aug 2006 21:22:55 +0000 |
parents | f3ed5f4efcae |
children | b9e9938b1afa |
comparison
equal
deleted
inserted
replaced
14067:f3ed5f4efcae | 14068:6cb8bdc3366f |
---|---|
531 GaimRequestFields *fields; | 531 GaimRequestFields *fields; |
532 GaimRequestFieldGroup *group; | 532 GaimRequestFieldGroup *group; |
533 GaimRequestField *field; | 533 GaimRequestField *field; |
534 const struct vcard_template *vc_tp; | 534 const struct vcard_template *vc_tp; |
535 const char *user_info; | 535 const char *user_info; |
536 char *cdata; | 536 char *cdata = NULL; |
537 xmlnode *x_vc_data = NULL; | 537 xmlnode *x_vc_data = NULL; |
538 | 538 |
539 fields = gaim_request_fields_new(); | 539 fields = gaim_request_fields_new(); |
540 group = gaim_request_field_group_new(NULL); | 540 group = gaim_request_field_group_new(NULL); |
541 gaim_request_fields_add_group(fields, group); | 541 gaim_request_fields_add_group(fields, group); |
562 data_node = xmlnode_get_child(x_vc_data, tag); | 562 data_node = xmlnode_get_child(x_vc_data, tag); |
563 g_free(tag); | 563 g_free(tag); |
564 } | 564 } |
565 if(data_node) | 565 if(data_node) |
566 cdata = xmlnode_get_data(data_node); | 566 cdata = xmlnode_get_data(data_node); |
567 else | 567 } |
568 cdata = NULL; | |
569 } else | |
570 cdata = NULL; | |
571 | 568 |
572 if(strcmp(vc_tp->tag, "DESC") == 0) { | 569 if(strcmp(vc_tp->tag, "DESC") == 0) { |
573 field = gaim_request_field_string_new(vc_tp->tag, | 570 field = gaim_request_field_string_new(vc_tp->tag, |
574 _(vc_tp->label), cdata, | 571 _(vc_tp->label), cdata, |
575 TRUE); | 572 TRUE); |
576 } else { | 573 } else { |
577 field = gaim_request_field_string_new(vc_tp->tag, | 574 field = gaim_request_field_string_new(vc_tp->tag, |
578 _(vc_tp->label), cdata, | 575 _(vc_tp->label), cdata, |
579 FALSE); | 576 FALSE); |
580 } | 577 } |
578 | |
579 g_free(cdata); | |
580 cdata = NULL; | |
581 | 581 |
582 gaim_request_field_group_add_field(group, field); | 582 gaim_request_field_group_add_field(group, field); |
583 } | 583 } |
584 | 584 |
585 if(x_vc_data != NULL) | 585 if(x_vc_data != NULL) |