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
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