[Live-devel] Memory leaks ?

Ross Finlayson finlayson at live.com
Tue Sep 6 09:29:21 PDT 2005


>My code is :
>
>Medium::close(pRtpSink);

Because you are writing a pure RTSP client, you shouldn't even be 
creating a "RTPSink" in the first place.

>pRtspClient->teardownMediaSubsession(pRtpSubsession);

You shouldn't do this.  The call to "tearDownMediaSession()" (below) is enough.

>pRtspClient->teardownMediaSession(pRtpSession);

OK

>Medium::close(pRtpSession);

OK

>Medium::close(pRtspClient);

OK

>delete m_pRtpEnv;

You can't do this (the code won't let you).  Instead, call
         m_pRTPEnv->reclaim();

>delete m_pRtpTaskScheduler;

OK.


	Ross Finlayson
	Live Networks, Inc. (LIVE.COM)
	<http://www.live.com/>



More information about the live-devel mailing list