From 65440847faef769cfcb07a94009642341820dd63 Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 8 Feb 2022 23:07:46 +0000 Subject: [PATCH] Fix a leak Signed-off-by: falkTX --- distrho/src/DistrhoPluginLV2.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/distrho/src/DistrhoPluginLV2.cpp b/distrho/src/DistrhoPluginLV2.cpp index 92ba3309..2da88f12 100644 --- a/distrho/src/DistrhoPluginLV2.cpp +++ b/distrho/src/DistrhoPluginLV2.cpp @@ -184,6 +184,12 @@ public: fNeededUiSends = nullptr; } + if (fUrids != nullptr) + { + delete[] fUrids; + fUrids = nullptr; + } + fStateMap.clear(); #endif }