Yes, you must call destroy on the object if it has it. On Tue, Jun 29, 2010 at 12:19 AM, Paul Li <plite2...@gmail.com> wrote:
> A lot of FreeSwitch core APIs, such as switch_event_dup(switch_event_t > **event, switch_event_t *todup), returns a pointer to an allocated > memory chunk, should the caller always releases that memory chunk by > calling a proper API, such as switch_event_destroy(switch_event_t > **event)? > > I could not find any documentation to detail the general rule > regarding memory allocation/free when using the core APIs. > > Thank you for your attention! > > _______________________________________________ > FreeSWITCH-dev mailing list > FreeSWITCH-dev@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > -- -Rupa
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org