diff --git a/source/backend/plugin/CarlaPluginLV2.cpp b/source/backend/plugin/CarlaPluginLV2.cpp index c29ca59f0..c4014dbea 100644 --- a/source/backend/plugin/CarlaPluginLV2.cpp +++ b/source/backend/plugin/CarlaPluginLV2.cpp @@ -2503,7 +2503,7 @@ public: for (uint32_t i=0; i < count; ++i) { - const uint32_t& type(evIns.getAt(i, 0x0)); + const uint32_t type = evIns.getAt(i, 0x0); if (type == CARLA_EVENT_DATA_ATOM) { @@ -2535,7 +2535,7 @@ public: for (uint32_t i=0; i < count; ++i) { - const uint32_t& type(evOuts.getAt(i, 0x0)); + const uint32_t type = evOuts.getAt(i, 0x0); if (type == CARLA_EVENT_DATA_ATOM) {