[Live-devel] How to delete live objects

Stas Desyatnlkov stas at mer.co.il
Sun Jan 14 09:43:59 PST 2007


Hi All,
In my code I do the following:

Groupsock* sock = new Groupsock(...);
src = new MultiframedRTPSource(...);
sink = new MediaSink(...);

sink->startPlaying(*src, afterPlay, sink);


void afterPlay(void* user)
{
	MediaSink* sink = (MediaSink*)user;
	Medium::close(src);
delete sock;
}

After the program is finished I got memory leaks. If I try to delete
sink pointer it crashes.
What is the right sequence of destruction here?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20070114/68d6504e/attachment-0001.html 


More information about the live-devel mailing list