summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2022-12-12 20:57:11 +1100
committerDamien Zammit <damien@zamaudio.com>2022-12-12 20:57:11 +1100
commit66c24a2e26d72dc0c3f1df85f335a069dc860bea (patch)
tree139b67d935874708a817e5672303f81cdc5e4dbe
parentfdb08e59cf85f7decfc495678febc4fc81850f97 (diff)
Delete samplerate converter state when done (fix memleak)
-rw-r--r--plugins/ZamHeadX2/convolution.cpp1
-rw-r--r--plugins/ZamVerb/convolution.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/plugins/ZamHeadX2/convolution.cpp b/plugins/ZamHeadX2/convolution.cpp
index a3e3f33..70a9095 100644
--- a/plugins/ZamHeadX2/convolution.cpp
+++ b/plugins/ZamHeadX2/convolution.cpp
@@ -415,6 +415,7 @@ int LV2convolv::resample_read_presets (const float *in, unsigned int in_frames,
src_data.output_frames_gen * PRESETS_CH);
if (n_sp) *n_sp = (unsigned int) src_data.output_frames_gen;
free(iin);
+ src_delete (src_state);
}
}
return (0);
diff --git a/plugins/ZamVerb/convolution.cpp b/plugins/ZamVerb/convolution.cpp
index 1ef44bc..56686c5 100644
--- a/plugins/ZamVerb/convolution.cpp
+++ b/plugins/ZamVerb/convolution.cpp
@@ -109,6 +109,7 @@ int LV2convolv::resample_read_presets (const float *in, unsigned int in_frames,
src_data.output_frames_gen * PRESETS_CH);
if (n_sp) *n_sp = (unsigned int) src_data.output_frames_gen;
free(iin);
+ src_delete (src_state);
}
}
return (0);