[Live-devel] Undereferenced sessions
Vlad Seryakov
vlad at crystalballinc.com
Mon Apr 9 11:35:32 PDT 2007
Actually it is set to True in removeServerMediaSession but
in RTSPServer::RTSPClientSession::~RTSPClientSession()
it is called when fOurServerMediaSession->deleteWhenUnreferenced()) is
already True, so catch22.
So in my code i added sms->deleteWhenUnreferenced() = True; before
adding it into the server and now it is deallocated properly.
May be it is better to set it by default to True?
Vlad Seryakov wrote:
> Hi,
>
> In ServerMediaSession, fDeleteWhenUnreferenced is always False and there
> is no way to set it True. This means that in
> RTSPServer::RTSPClientSession::~RTSPClientSession()
>
> if (fOurServerMediaSession->referenceCount() == 0
> && fOurServerMediaSession->deleteWhenUnreferenced())
>
> is awlays false and current session is never freed, or i miss something.
> I extend ServerMediaSession class with my own and log new and delete and
> i see new allocations but never see destructor is being called.
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
More information about the live-devel
mailing list