Changeset 9066974


Ignore:
Timestamp:
2010-10-23T03:05:48Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
f486006
Parents:
03e6c52
Message:

Fixed some still-leaky code in the MSN incoming status message handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/ns.c

    r03e6c52 r9066974  
    673673        else if( strcmp( cmd[0], "UBX" ) == 0 )
    674674        {
    675                 struct xt_node *psm;
     675                struct xt_node *ubx, *psm;
    676676                char *psm_text = NULL;
    677677               
    678                 psm = xt_from_string( msg );
    679                 if( psm && strcmp( psm->name, "Data" ) == 0 &&
    680                     ( psm = xt_find_node( psm->children, "PSM" ) ) )
     678                ubx = xt_from_string( msg );
     679                if( ubx && strcmp( ubx->name, "Data" ) == 0 &&
     680                    ( psm = xt_find_node( ubx->children, "PSM" ) ) )
    681681                        psm_text = psm->text;
    682682               
    683683                imcb_buddy_status_msg( ic, cmd[1], psm_text );
    684                 xt_free_node( psm );
     684                xt_free_node( ubx );
    685685        }
    686686        else if( strcmp( cmd[0], "ADL" ) == 0 )
Note: See TracChangeset for help on using the changeset viewer.