comparison libpurple/protocols/msn/contact.c @ 22804:7d3b2c023ad8

This is the way we plug the leaks, plug the leaks, plug the leaks...
author Daniel Atallah <daniel.atallah@gmail.com>
date Sat, 03 May 2008 17:56:04 +0000
parents 8041c74e36d7
children 3c98c25b076b
comparison
equal deleted inserted replaced
22803:7b827f52ed0e 22804:7d3b2c023ad8
496 char *is_messenger_enabled = NULL; 496 char *is_messenger_enabled = NULL;
497 497
498 mobile_number = xmlnode_get_data(number); 498 mobile_number = xmlnode_get_data(number);
499 499
500 if (mobile_number && 500 if (mobile_number &&
501 (messenger_enabled = xmlnode_get_child(contact_phone, "isMessengerEnabled")) 501 (messenger_enabled = xmlnode_get_child(contact_phone, "isMessengerEnabled"))
502 && (is_messenger_enabled = xmlnode_get_data(messenger_enabled)) 502 && (is_messenger_enabled = xmlnode_get_data(messenger_enabled))
503 && !strcmp(is_messenger_enabled, "true")) 503 && !strcmp(is_messenger_enabled, "true"))
504 mobile = TRUE; 504 mobile = TRUE;
505 505
506 g_free(mobile_number);
506 g_free(is_messenger_enabled); 507 g_free(is_messenger_enabled);
507 } 508 }
508 } 509 }
509 510
510 g_free(phone_type); 511 g_free(phone_type);
689 690
690 if (g_str_equal(errorcode, "ABDoesNotExist")) { 691 if (g_str_equal(errorcode, "ABDoesNotExist")) {
691 g_free(errorcode); 692 g_free(errorcode);
692 return TRUE; 693 return TRUE;
693 } 694 }
695 g_free(errorcode);
694 } 696 }
695 697
696 return FALSE; 698 return FALSE;
697 } 699 }
698 700