]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
data pulled from xml needs to be duped in order for it to stay around for sure.
authorMichael Jerris <mike@jerris.com>
Mon, 12 Feb 2007 20:30:13 +0000 (20:30 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 12 Feb 2007 20:30:13 +0000 (20:30 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4209 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_conference/mod_conference.c

index b8af10e918328ea24dba8782ec0a45315a303c65..cb8813ab0b5e80d3e7e9e88a0b177bf4a1ba9f2e 100644 (file)
@@ -4357,7 +4357,7 @@ static switch_status_t conference_new_install_caller_controls_custom(conference_
                         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);