<!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> </PRE><PRE>>To reclaim an object derived from the "Medium" class, call
>"Medium::close()". That is sufficient.
>In general, you should reclaim objects in the reverse order that they
>were created. So, to reclaim your "UsageEnvironment" and
>"TashScheduler" objects, do the following (after reclaiming other
>objects):
>env->reclaim();
>delete scheduler;
>(Yes, this is all really ugly and inconsistent. Someday it might get
>improved...)
</PRE></FONT></DIV><BR />
<BR />
<HR />
ELMA Kurtalj d.o.o. (ELMA Kurtalj ltd.)<BR />
Vitezićeva 1a, 10000 Zagreb, Hrvatska (Viteziceva 1a, 10000 Zagreb, Croatia)<BR />
Tel: 01/3035555, Faks: 01/3035599 (Tel: ++385-1-3035555, Fax: ++385-1-3035599 )<BR />
<BR />
Www:<BR />
www.elma.hr; shop.elma.hr<BR />
<BR />
E-mail:<BR />
elma@elma.hr (elma@elma.hr)<BR />
pitanje@elma.hr (questions@elma.hr)<BR />
primjedbe@elma.hr (complaints@elma.hr)<BR />
prodaja@elma.hr (sales@elma.hr)<BR />
servis@elma.hr (servicing@elma.hr)<BR />
shop@elma.hr (shop@elma.hr)<BR />
skladiste@elma.hr (warehouse@elma.hr)<BR />
</BODY></HTML>