> When the RTSPClient execute SETUP request, the sessionId is stored in the 
> MediaSubSession.

And it gets delete[]d later, when the RTSPClient does a "TEARDOWN".  So this 
isn't really a memory leak.

However, I can see why "valgrind" might get confused by this.  The "sessionId" 
field in "MediaSubsession" is a bit strange, because it - unlike most class 
member fields - is not managed by the class's member functions and/or its 
constructor/destructor.  Instead, it is managed by whatever code happens to use 
the "sessionId" field - in this case, the "RTSPClient" code.  (Note that 
"MediaSession"s can be used without RTSP - e.g., if you want to receive a 
multicast stream using only its SDP description.  So "sessionId" is not an 
inherent property of a "MediaSession".)

However, because you're at least the third 'valgrinerd' :-) to have asked about 
this over the years, I might end up changing this behavior, so I don't keep 
getting questions about this...


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to