Changeset 4903

Show
Ignore:
Timestamp:
05/04/07 11:42:06 (18 months ago)
Author:
emostar
Message:

closes #1502

Location:
trunk/licq/src
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/licq/src/icqd-srv.cpp

    r4902 r4903  
    39773977    PushPluginSignal(new CICQSignal(SIGNAL_UPDATExUSER, USER_TYPING, szId, 
    39783978                                    LICQ_PPID)); 
     3979    delete [] szId; 
    39793980    break; 
    39803981  } 
  • trunk/licq/src/icqpacket.cpp

    r4902 r4903  
    11511151  contacts[0] = '\0'; 
    11521152 
    1153   for (it = users.begin(); it != users.end(); it++) { 
     1153  for (it = users.begin(); it != users.end(); ++it) { 
    11541154    len[0] = strlen(*it); 
    11551155    strcat(contacts, len); 
     
    11621162 
    11631163  buffer->Pack(contacts, strlen(contacts)); 
     1164 
     1165  delete [] contacts; 
    11641166} 
    11651167 
  • trunk/licq/src/onevent.cpp

    r4526 r4903  
    109109      char szCmd[strlen(m_szCommand) + strlen(szFullParam) + 8]; 
    110110      sprintf(szCmd, "%s %s &", m_szCommand, szFullParam); 
    111       free(szFullParam); 
    112111      system(szCmd); 
    113112    } 
     113 
     114    if (szFullParam) 
     115      free(szFullParam); 
    114116  } 
    115117  pthread_mutex_unlock(&mutex);