[Live-devel] small leaks?
Gabriel Bouvigne
gabriel.bouvigne at resonate-mp4.com
Tue Jun 8 13:25:10 PDT 2004
I have the feeling that perhaps there could be some leaks at the
following places:
*media.cpp, _Tables* getOurTables(UsageEnvironment& env)
l 49:
env.liveMediaPriv = new _Tables;
But nowhere I see deletion of liveMediaPriv.
I changed the ~UsageEnvironment to:
UsageEnvironment::~UsageEnvironment() {
if (liveMediaPriv != NULL){
delete liveMediaPriv;
liveMediaPriv = NULL;
}
}
*media.cpp, static MediaLookupTable* ourMedia(UsageEnvironment& env)
l 59:
ourTables->mediaTable = new MediaLookupTable;
But nowhere I see deletion of mediaTable.
I added ~_Tables:
_Tables::~_Tables() {
if (mediaTable != NULL) {
delete mediaTable;
}
}
I might be possible that those are not leaks and that I could have
missed a cleanup function.
Regards,
--
Gabriel Bouvigne
Resonate mp4
Tel: (+33) 142 411 665
More information about the live-devel
mailing list