13 lines
362 B
Diff
13 lines
362 B
Diff
diff --git a/src/amsynth_lv2.cpp b/src/amsynth_lv2.cpp
|
|
index e90fad1..847ea9c 100644
|
|
--- a/src/amsynth_lv2.cpp
|
|
+++ b/src/amsynth_lv2.cpp
|
|
@@ -85,7 +85,7 @@ lv2_instantiate(const LV2_Descriptor *descriptor, double sample_rate, const char
|
|
LV2_WORKER__schedule, &a->schedule, true,
|
|
NULL);
|
|
if (missing) {
|
|
- free(a);
|
|
+ delete a;
|
|
return nullptr;
|
|
}
|
|
|