So, I can't free memory allocated by RTSPClient::createNew?I have a wrapper class around RTSPClient which I use in mannner ofCRTSPClient *client = new CRTSPClient(...).And I should not use "delete client;" but internally close open Media and then just reuse "*client" without deleting it?I'm just curious, why did live555 team decided to do it that way.Isn't it easier just to use standard new and delete for allocation? (not a factory)>To reclaim an object derived from the "Medium" class, call >"Medium::close()". That is sufficient.
>In general, you should reclaim objects in the reverse order that they >were created. So, to reclaim your "UsageEnvironment" and >"TashScheduler" objects, do the following (after reclaiming other >objects): >env->reclaim(); >delete scheduler; >(Yes, this is all really ugly and inconsistent. Someday it might get >improved...) ELMA Kurtalj d.o.o. (ELMA Kurtalj ltd.) Vitezićeva 1a, 10000 Zagreb, Hrvatska (Viteziceva 1a, 10000 Zagreb, Croatia) Tel: 01/3035555, Faks: 01/3035599 (Tel: ++385-1-3035555, Fax: ++385-1-3035599 ) Www: www.elma.hr; shop.elma.hr E-mail: [email protected] ([email protected]) [email protected] ([email protected]) [email protected] ([email protected]) [email protected] ([email protected]) [email protected] ([email protected]) [email protected] ([email protected]) [email protected] ([email protected])
_______________________________________________ live-devel mailing list [email protected] http://lists.live555.com/mailman/listinfo/live-devel
