Browse Source

Fix memory leak of mapJ variable in MIDI-Map.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
5919c4adcc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Core/MIDI_Map.cpp

+ 1
- 1
src/Core/MIDI_Map.cpp View File

@@ -213,7 +213,7 @@ struct MIDI_Map : Module {
json_object_set_new(mapJ, "cc", json_integer(ccs[id]));
json_object_set_new(mapJ, "moduleId", json_integer(paramHandles[id].moduleId));
json_object_set_new(mapJ, "paramId", json_integer(paramHandles[id].paramId));
json_array_append(mapsJ, mapJ);
json_array_append_new(mapsJ, mapJ);
}
json_object_set_new(rootJ, "maps", mapsJ);



Loading…
Cancel
Save