Show
Ignore:
Timestamp:
06/17/08 16:09:25 (6 months ago)
Author:
eugene
Message:

Fixed ppidString cleanup and converted another place of numeric ppid printout.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/contactlist/contactlist.cpp

    r6327 r6330  
    9494      if (u == NULL) 
    9595      { 
    96         gLog.Warn("%sContactList::listUpdated(): Invalid user received: %lu, %s\n", L_ERRORxSTR, sig->PPID(), sig->Id()); 
     96        char* ppidString = PPIDSTRING(sig->PPID()); 
     97        gLog.Warn("%sContactList::listUpdated(): Invalid user received: %s (%s)\n", 
     98            L_ERRORxSTR, sig->Id(), ppidString); 
     99        delete[] ppidString; 
    97100        break; 
    98101      } 
     
    176179  if (user == NULL) 
    177180  { 
     181    char* ppidString = PPIDSTRING(sig->PPID()); 
    178182    gLog.Warn("%sContactList::userUpdated(): Invalid user received: %s (%s)\n", 
    179         L_ERRORxSTR, sig->Id(), PPIDSTRING(sig->PPID())); 
     183        L_ERRORxSTR, sig->Id(), ppidString); 
     184    delete[] ppidString; 
    180185    return; 
    181186  }