[Live-devel] Object Ownership in liveMedia

Ross Finlayson finlayson at live555.com
Mon Apr 29 06:44:10 PDT 2013


> Do you have any guidelines or conventions regarding object ownership in the library?

In general, the entity that create an object is responsible for deleting it.

There are exceptions to this, though.  For example - as you noted - when you have a 'chain' of "FramedSource" objects, feeding into each other (e.g., "source1"->"source(filter)2"->"source(filter)3"), then you delete them by deleting the tail object only.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20130429/4f050971/attachment.html>


More information about the live-devel mailing list