[Live-devel] another question for deleting object

adrian hornsby adrian_hornsby at yahoo.co.uk
Thu Sep 29 10:51:52 PDT 2005


Ok Ross, thanks :)

--- Ross Finlayson <finlayson at live555.com> wrote:

> 
> >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/>
> 
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
> 



		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com


More information about the live-devel mailing list