Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/notification.c @ 20495:7f5564ebde7f
Fix some memory leaks. Free xmlnodes properly using xmlnode_free instead of
g_free.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 09 Sep 2007 00:43:22 +0000 |
parents | 82d8797e06f3 |
children | d23c3a5884ee |
comparison
equal
deleted
inserted
replaced
20494:82d8797e06f3 | 20495:7f5564ebde7f |
---|---|
1623 MsnSession *session; | 1623 MsnSession *session; |
1624 PurpleAccount *account; | 1624 PurpleAccount *account; |
1625 PurpleConnection *gc; | 1625 PurpleConnection *gc; |
1626 MsnUser *user; | 1626 MsnUser *user; |
1627 const char *passport; | 1627 const char *passport; |
1628 char *psm_str, *currentmedia_str; | 1628 char *psm_str, *currentmedia_str, *str; |
1629 | 1629 |
1630 /*get the payload content*/ | 1630 /*get the payload content*/ |
1631 // purple_debug_info("MSNP14","UBX {%s} payload{%s}\n",cmd->params[0], cmd->payload); | 1631 // purple_debug_info("MSNP14","UBX {%s} payload{%s}\n",cmd->params[0], cmd->payload); |
1632 | 1632 |
1633 session = cmdproc->session; | 1633 session = cmdproc->session; |
1637 passport = cmd->params[0]; | 1637 passport = cmd->params[0]; |
1638 user = msn_userlist_find_user(session->userlist, passport); | 1638 user = msn_userlist_find_user(session->userlist, passport); |
1639 | 1639 |
1640 psm_str = msn_get_psm(cmd->payload,len); | 1640 psm_str = msn_get_psm(cmd->payload,len); |
1641 currentmedia_str = msn_parse_currentmedia( | 1641 currentmedia_str = msn_parse_currentmedia( |
1642 msn_get_currentmedia(cmd->payload, len)); | 1642 str = msn_get_currentmedia(cmd->payload, len)); |
1643 g_free(str); | |
1643 | 1644 |
1644 msn_user_set_statusline(user, psm_str); | 1645 msn_user_set_statusline(user, psm_str); |
1645 msn_user_set_currentmedia(user, currentmedia_str); | 1646 msn_user_set_currentmedia(user, currentmedia_str); |
1646 msn_user_update(user); | 1647 msn_user_update(user); |
1647 | 1648 |