<!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] Memory leaks, only creatNew But no
delete</title></head><body>
<blockquote type="cite" cite><b>I searched all files of live555, found
nowhere to delete the pointer of BasicTaskScheduler instance, include
playcommon.c . I don't know whether I should delete it myself.<br>
But the destructor of class "BasicUsageEnvironment" is
declared in<br>
protected field and cannot accessed by "delete". Should I
move it to<br>
public field?</b></blockquote>
<div><br></div>
<div>No, you do not need to modfify the existing code.</div>
<div><br></div>
<div>To delete a UsageEnvironment* "env", call</div>
<div><x-tab>
</x-tab>env->reclaim();</div>
<div><br></div>
<div>To delete a TaskScheduler* "sched", call</div>
<div><x-tab> </x-tab>delete
sched;</div>
<div><br></div>
<div>You should do this in the order listed above - i.e, delete the
UsageEnvironment first, then the TaskScheduler.</div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>