[Live-devel] Memory leak on closing client and sessions

Dario dmaljur at elma.hr
Fri Oct 23 04:04:01 PDT 2009


Hi.

I created simple video stream (mpeg4) and I'm using FileSink as default sink.
Everything is fine until I try to end all sessions and streaming. Everything ends
and every subsession and session is closed but there still apears to be memory leak
somwhere.

I'm opening the stream like this:
1. Get discription
2. Create new media session
3. Init media sub sessions 
4. setupMediaSubsession(subsession)
5. create file sink
6. Setting subsession->sink = filesink;
7. subsession->sink->startPlauying(subsession->readSource,NULL,subsession);
8. rtspClient->playMediaSession(...);

I'm ending streams like this:
 rtspClient_->teardownMediaSession(*mediaSession_);
 
 MediaSubsessionIterator iter(*mediaSession_);
 MediaSubsession *subsession = iter.next();
 
 
 while (subsession != NULL)
       {
        subsession->sink->stopPlaying();
        Medium::close(subsession->sink);
        subsession->sink = NULL;
        subsession = iter.next();
       }
 
 MediaSession::close(mediaSession_);
 mediaSession_ = NULL;


Did I miss something?


ELMA Kurtalj d.o.o. (ELMA Kurtalj ltd.)
Vitezićeva 1a, 10000 Zagreb, Hrvatska (Viteziceva 1a, 10000 Zagreb, Croatia)
Tel: 01/3035555, Faks: 01/3035599 (Tel: ++385-1-3035555, Fax: ++385-1-3035599 )

Www:
www.elma.hr; shop.elma.hr

E-mail:
elma at elma.hr (elma at elma.hr)
pitanje at elma.hr (questions at elma.hr)
primjedbe at elma.hr (complaints at elma.hr)
prodaja at elma.hr (sales at elma.hr)
servis at elma.hr (servicing at elma.hr)
shop at elma.hr (shop at elma.hr)
skladiste at elma.hr (warehouse at elma.hr)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20091023/b98f6af1/attachment.html>


More information about the live-devel mailing list