Mercurial > pidgin
changeset 30140:137d464440f7
Correctly reset and free user->extinfo when the buddy is not listening to
anything, or the tune icon will stay around for no reason.
Fixes #12050.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Mon, 31 May 2010 06:51:16 +0000 |
parents | 8136ca038c0b |
children | 0b2403172dee |
files | libpurple/protocols/msn/notification.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c Mon May 31 06:35:17 2010 +0000 +++ b/libpurple/protocols/msn/notification.c Mon May 31 06:51:16 2010 +0000 @@ -1595,6 +1595,7 @@ user->extinfo->media_album = NULL; user->extinfo->media_artist = NULL; user->extinfo->media_title = NULL; + user->extinfo->media_type = CURRENT_MEDIA_UNKNOWN; } if (len != 0) { @@ -1609,6 +1610,11 @@ msn_user_set_statusline(user, NULL); } + if (user->extinfo && user->extinfo->media_type == CURRENT_MEDIA_UNKNOWN) { + g_free(user->extinfo); + user->extinfo = NULL; + } + msn_user_update(user); }