<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [Live-devel] Closing the media does not free
allocated</title></head><body>
<blockquote type="cite" cite><font face="Arial" size="-1">How do I
release memory allocated for ourClient since destructor is private
operation.</font></blockquote>
<div><br></div>
<div>To reclaim an object derived from the &quot;Medium&quot; class,
call &quot;Medium::close()&quot;.&nbsp; That is sufficient.</div>
<div><br></div>
<div>In general, you should reclaim objects in the reverse order that
they were created.&nbsp; So, to reclaim your &quot;UsageEnvironment&quot;
and &quot;TashScheduler&quot; objects, do the following (after
reclaiming other objects):</div>
<div><br></div>
<div>env-&gt;reclaim();</div>
<div>delete scheduler;</div>
<div><br></div>
<div>(Yes, this is all really ugly and inconsistent.&nbsp; Someday it
might get improved...)</div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>