| 694 name = xmlnode_get_data(child); |
694 name = xmlnode_get_data(child); |
| 695 } |
695 } |
| 696 |
696 |
| 697 if ((protocol_id == NULL) || (name == NULL)) |
697 if ((protocol_id == NULL) || (name == NULL)) |
| 698 { |
698 { |
| 699 free(protocol_id); |
699 g_free(protocol_id); |
| 700 free(name); |
700 g_free(name); |
| 701 return NULL; |
701 return NULL; |
| 702 } |
702 } |
| 703 |
703 |
| 704 ret = gaim_account_new(name, protocol_id); |
704 ret = gaim_account_new(name, protocol_id); |
| 705 free(name); |
705 g_free(name); |
| 706 free(protocol_id); |
706 g_free(protocol_id); |
| 707 |
707 |
| 708 /* Read the password */ |
708 /* Read the password */ |
| 709 child = xmlnode_get_child(node, "password"); |
709 child = xmlnode_get_child(node, "password"); |
| 710 if ((child != NULL) && ((data = xmlnode_get_data(child)) != NULL)) |
710 if ((child != NULL) && ((data = xmlnode_get_data(child)) != NULL)) |
| 711 { |
711 { |