Re: [Live-devel] MORE: Memory leaks in DarwinInjector.cpp

2007-11-19 Thread eyal.b
Yes you are right about item 2, the one that allocates is the one to de-allocate. The problem is that RTSPClient uses the MediaSubsession as it own repository for the allocated sub-session id. It only keeps a copy (strDup) of the last sub-session id. So it has no way of keeping track of what it had

[Live-devel] MORE: Memory leaks in DarwinInjector.cpp

2007-11-16 Thread eyal.b
Hello, In my previous mail I have suggested how to prevent memory leaks in DarwinInjector. I want to correct a possible crash in my solution and add some more. 1) My solution could cause NULL pointer memory access error when a DarwinInjector was deleted before a session was created. So

[Live-devel] Memory leaks in DarwinInjector.cpp

2007-11-01 Thread eyal.b
Hello, I have found a few memory leaks in the injector code. 1) In the SubstreamDescriptor() constructor a variable called "rtpmapLine" gets allocated but never freed. 2) In setDestination() a MediaSession is created to help the created RTSPClient to setup its sub-sessions. This