[Live-devel] To avoid memory leak.
David Wu
davidw at aten-ca.com
Wed Feb 9 11:21:22 PST 2005
After I terminated a thread running with "env->taskScheduler().doEventLoop();", what should I do to clear all resources hold by the following variables?
UsageEnvironment *env;
AudioInputDevice *source;
SimpleRTPSink *sink;
or
SimpleRTPSource *source;
FileSink *sink;
RTCPInstance* rtcpInstance;
Groupsock* rtpGroupsock;
Groupsock* rtcpGroupsock;
A user may start or stop the streamer or receiver with different multicast address, sampling frequence, so memory leak is concerned.
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live.com/pipermail/live-devel/attachments/20050209/ae7ccbfb/attachment.html
More information about the live-devel
mailing list