diff --git a/src/mod/languages/mod_managed/freeswitch_managed.cpp b/src/mod/languages/mod_managed/freeswitch_managed.cpp index fe9d4dd381..583051cf1c 100644 --- a/src/mod/languages/mod_managed/freeswitch_managed.cpp +++ b/src/mod/languages/mod_managed/freeswitch_managed.cpp @@ -104,7 +104,7 @@ switch_status_t ManagedSession::run_dtmf_callback(void *input, switch_input_type char *result = dtmfDelegate(input, itype); switch_status_t status = process_callback_result(result); - Marshal::FreeHGlobal(IntPtr(result)); // I think this is right + Marshal::FreeCoTaskMem(IntPtr(result)); // I think this is right return status; }