diff options
author | Robin Gareus <robin@gareus.org> | 2020-02-06 08:39:47 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-02-06 17:30:22 +0100 |
commit | 6f5d6e9ba2c8aa8c1554d568bea903d028150d30 (patch) | |
tree | adf14c75550439465b1c689c309fe33148af8c13 /libs/ardour/ardour | |
parent | 01a75c04b1912856d60629250b80873199449811 (diff) |
Fix rt-safety of LuaProc w/o chanmapping
Since Lua function arguments are not typed, there is no
explicit "const", and a function can always modify the parameter.
When passing `ChanMapping const&` as argument, the object is
copy constructed. In this specific case the std::map<> members
of ChanMapping allocate memory.
Passing a pointer to the object works around this issue.
LuaBridge later dereferences the object as needed when calling
c++ methods, and copy-construction would only happen later.
Diffstat (limited to 'libs/ardour/ardour')
0 files changed, 0 insertions, 0 deletions