<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><PRE>So, I can't free memory allocated by RTSPClient::createNew?</PRE><PRE>I have a wrapper class around RTSPClient which I use in mannner of</PRE><PRE>CRTSPClient *client = new CRTSPClient(...).</PRE><PRE>And I should not use "delete client;" but internally close open Media </PRE><PRE>and then just reuse "*client" without deleting it?</PRE><PRE>I'm just curious, why did live555 team decided to do it that way.</PRE><PRE>Isn't it easier just to use standard new and delete for allocation? (not a factory)</PRE><PRE>&nbsp;</PRE><PRE>&gt;To reclaim an object derived from the "Medium" class, call 
&gt;"Medium::close()".  That is sufficient.

&gt;In general, you should reclaim objects in the reverse order that they 
&gt;were created.  So, to reclaim your "UsageEnvironment" and 
&gt;"TashScheduler" objects, do the following (after reclaiming other 
&gt;objects):

&gt;env-&gt;reclaim();
&gt;delete scheduler;

&gt;(Yes, this is all really ugly and inconsistent.  Someday it might get 
&gt;improved...)
</PRE></FONT></DIV><BR />
<BR />
<HR />
ELMA&nbsp;Kurtalj&nbsp;d.o.o.&nbsp;(ELMA&nbsp;Kurtalj&nbsp;ltd.)<BR />
Vitezićeva&nbsp;1a,&nbsp;10000&nbsp;Zagreb,&nbsp;Hrvatska&nbsp;(Viteziceva&nbsp;1a,&nbsp;10000&nbsp;Zagreb,&nbsp;Croatia)<BR />
Tel:&nbsp;01/3035555,&nbsp;Faks:&nbsp;01/3035599&nbsp;(Tel:&nbsp;++385-1-3035555,&nbsp;Fax:&nbsp;++385-1-3035599&nbsp;)<BR />
<BR />
Www:<BR />
www.elma.hr;&nbsp;shop.elma.hr<BR />
<BR />
E-mail:<BR />
elma@elma.hr&nbsp;(elma@elma.hr)<BR />
pitanje@elma.hr&nbsp;(questions@elma.hr)<BR />
primjedbe@elma.hr&nbsp;(complaints@elma.hr)<BR />
prodaja@elma.hr&nbsp;(sales@elma.hr)<BR />
servis@elma.hr&nbsp;(servicing@elma.hr)<BR />
shop@elma.hr&nbsp;(shop@elma.hr)<BR />
skladiste@elma.hr&nbsp;(warehouse@elma.hr)<BR />
</BODY></HTML>