Browse Source

AAX: Fixed a use-after-free crash in the handling of parameter IDs in the AAX wrapper

tags/2021-05-28
hogliux 7 years ago
parent
commit
71f281257b
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp

+ 2
- 3
modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp View File

@@ -1422,9 +1422,8 @@ namespace AAXClasses
auto isBypassParameter = (juceParam == bypassParameter);
auto category = juceParam->getCategory();
auto paramID = isBypassParameter ? cDefaultMasterBypassID
: juceParameters.getParamID (audioProcessor, parameterIndex)
.toRawUTF8();
auto paramID = isBypassParameter ? String (cDefaultMasterBypassID)
: juceParameters.getParamID (audioProcessor, parameterIndex);
aaxParamIDs.add (paramID);
auto aaxParamID = aaxParamIDs.getReference (parameterIndex++).getCharPointer();


Loading…
Cancel
Save