Re: [Freeswitch-dev] Newbie question on switch_event_dup() with a code snippet

2010-06-30 Thread Anthony Minessale
Yes cloned events must be destroyed for sure. Better still what you should so in this case is use a fifo to deliver the cloned event to another thread so you are not blocking in the event handler. You can then destroy it from there. On Tue, Jun 29, 2010 at 10:03 PM, Paul Li wrote: > I guess

Re: [Freeswitch-dev] Newbie question on switch_event_dup() with a code snippet

2010-06-29 Thread Paul Li
I guess you were assuming I would pass the event clone (pointer) to the core API (such as switch_event_fire), so that I would not need to free the clone pointer. I guess I still need to destroy it in the following scenario: static void my_event_handler(switch_event_t *event) { switch_event_t *c