source: branches/packages_10.03.1/net/znc/patches/004-fix_memleak.patch @ 27836

Last change on this file since 27836 was 27836, checked in by jow, 5 years ago

[packages_10.03.1] merge r27798, r27799

File size: 305 bytes
  • Chan.cpp

    a b bool CChan::AddNick(const CString& sNick 
    417417        // Get the nick 
    418418        sTmp   = sTmp.Token(0, false, "!"); 
    419419 
     420        CNick tmpNick(sTmp); 
    420421        CNick* pNick = FindNick(sTmp); 
    421422        if (!pNick) { 
    422                 pNick = new CNick(sTmp); 
     423                pNick = &tmpNick; 
    423424                pNick->SetUser(m_pUser); 
    424425        } 
    425426 
Note: See TracBrowser for help on using the repository browser.