[Freeswitch-svn] [commit] r4209 - freeswitch/trunk/src/mod/applications/mod_conference

Freeswitch SVN mikej at freeswitch.org
Mon Feb 12 15:30:13 EST 2007


Author: mikej
Date: Mon Feb 12 15:30:13 2007
New Revision: 4209

Modified:
   freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c

Log:
data pulled from xml needs to be duped in order for it to stay around for sure.

Modified: freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c	Mon Feb 12 15:30:13 2007
@@ -4357,7 +4357,7 @@
                         action = (caller_control_action_t *)switch_core_alloc(conference->pool, sizeof(caller_control_action_t));
                         if (action != NULL) {
                             action->fndesc = &ccfntbl[i];
-                            action->data = (void *)data;
+                            action->data = (void *)switch_core_strdup(conference->pool, data);
                             status = switch_ivr_digit_stream_parser_set_event(conference->dtmf_parser, val, action);
                         } else {
                             switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "unable to alloc memory for caller control binding '%s' to '%s'\n", ccfntbl[i].key, ccfntbl[i].digits);



More information about the Freeswitch-svn mailing list