<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY style="COLOR: #000000; FONT-FAMILY: Arial" bgColor=#c0c0c0>
<DIV><FONT size=2>After I terminated a thread running with
"env->taskScheduler().doEventLoop();", what should I do to clear all
resources hold by the following variables?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> UsageEnvironment *env;</FONT></DIV>
<DIV><FONT size=2></FONT><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> AudioInputDevice
*source;<BR> SimpleRTPSink *sink;</FONT></DIV>
<DIV><FONT size=2> or </FONT></DIV>
<DIV><FONT size=2> SimpleRTPSource *source;</FONT></DIV>
<DIV><FONT size=2> FileSink *sink;</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> RTCPInstance* rtcpInstance;</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> Groupsock*
rtpGroupsock;<BR> Groupsock* rtcpGroupsock;<BR></FONT></DIV>
<DIV><FONT size=2>A user may start or stop the streamer or receiver with
different multicast address, sampling frequence, so memory leak is
concerned. </FONT></DIV>
<DIV><FONT size=2>Will "Media::Close" be enough for all its subclasses? Do
I have to create an extra static function to match "CreateNew"
function for releasing resources?</DIV></FONT>
<P></P></BODY></HTML>