[Live-devel] another question for deleting object

Ross Finlayson finlayson at live555.com
Thu Sep 29 02:25:52 PDT 2005


>Is there a better way to destroy an framedsource than
>what I do ?
>I had a function to FramedSource.cpp
>
>//Add
>void FramedSource::Destroy(FramedSource
>*pFramedSource){
>    delete pFramedSource;
>}

No, don't do this.  Instead, just call
         Medium::close(objectPtr);
(Do this to destroy any object subclassed from "Medium".)


	Ross Finlayson
	Live Networks, Inc. (LIVE555.COM)
	<http://www.live555.com/>



More information about the live-devel mailing list