[Live-devel] small leaks
Gabriel Bouvigne
gabriel.bouvigne at resonate-mp4.com
Thu Aug 12 17:10:51 PDT 2004
I think that I might have idenfied some small leaks.
Here are the changes I made:
----------------------------------------
*rtspclient.cpp
RTSPClient::~RTSPClient() {
reset();
delete[] fUserAgentHeaderStr;
if (fLastSessionId)
delete[] fLastSessionId;
}
-------------------------------------------
*rtcp.cpp, reapOldMembers(unsigned threshold)
...
if (foundOldMember) {
#ifdef DEBUG
fprintf(stderr, "reap: removing SSRC 0x%x\n", oldSSRC);
#endif
remove(oldSSRC);
}
delete iter;
} while (foundOldMember);
}
---------------------------
*hashtable.cpp
void* HashTable::RemoveNext() {
Iterator* iter = Iterator::create(*this);
char const* key;
void* removedValue = iter->next(key);
if (removedValue != 0) Remove(key);
delete iter;
return removedValue;
}
Regards,
--
Gabriel Bouvigne
Resonate mp4
Tel: (+33) 142 411 665
More information about the live-devel
mailing list