[Live-devel] How to free memory in the function ByteStreamFileSource::doReadFromFile()
Ross Finlayson
finlayson at live555.com
Sun Nov 15 02:38:13 PST 2009
First, you should *not* be modifying the existing code (e.g.,
"ByteStreamFileSource::doReadFromFile()"), because that makes it
difficult to upgrade to new versions of the code. Instead, if you
want to modify the existing code, you should use a new class name
(and a new file name).
The only place a class (subclassed from "Medium") should be deleting
heap-allocated memory is in its destructor. (The destructor will be
called automatically when"Medium::close()" is called.)
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list