[Live-devel] Leak: Orhpan item is left in MediaLookUp table if AVI file creation fails.
mehmet.ozgul at turkcellteknoloji.com.tr
mehmet.ozgul at turkcellteknoloji.com.tr
Thu Sep 11 04:47:15 PDT 2008
Hi,
I noticed that if OpenOutputFile(env, outputFileName) method call in
AVIFileSink constructor fails, the AVIFileSink remains in the
MediaLookUp table.
Addition to the table is done in the constructor of Medium and is called
in AVIFileSink constructor's initializer list. Since
AVIFileSink::createNew() returns NULL in this case, the client
application does not receive a reference to close the AVIFileSink.
Orphan AVIFileSink reference in the MediaLookUp table prevents
Environment to be correctly reclaimed, since liveMediaPriv remains
non-NULL because of the not empty table.
It looks like it also applies to QuickTimeFileSink. However
FileSink::createNew() does not construct if the file creation fails
which prevents such an orphan reference.
Regards,
Mehmet Ozgul
************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080911/3c08095d/attachment.html>
More information about the live-devel
mailing list