<!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 "Medium" class,
call "Medium::close()". That is sufficient.</div>
<div><br></div>
<div>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):</div>
<div><br></div>
<div>env->reclaim();</div>
<div>delete scheduler;</div>
<div><br></div>
<div>(Yes, this is all really ugly and inconsistent. 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>