diff options
author | Damien Zammit <damien@zamaudio.com> | 2022-12-12 14:17:56 +1100 |
---|---|---|
committer | Damien Zammit <damien@zamaudio.com> | 2022-12-12 14:17:56 +1100 |
commit | fdb08e59cf85f7decfc495678febc4fc81850f97 (patch) | |
tree | 71dec75cb4fccc1f70c38a609e95a07df88d6353 /plugins/ZamVerb/convolution.cpp | |
parent | fea4bf48308b9b8a9b8a98b04935957bdd54aacf (diff) |
Fix crash in convolution based plugins
Diffstat (limited to 'plugins/ZamVerb/convolution.cpp')
-rw-r--r-- | plugins/ZamVerb/convolution.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/ZamVerb/convolution.cpp b/plugins/ZamVerb/convolution.cpp index 57f04b2..1ef44bc 100644 --- a/plugins/ZamVerb/convolution.cpp +++ b/plugins/ZamVerb/convolution.cpp @@ -140,7 +140,7 @@ void LV2convolv::clv_release (void) { void LV2convolv::clv_clone_settings(LV2convolv *clv_new) { convproc = clv_new->convproc; - ir_fn = clv_new->ir_fn; + ir_fn = strdup(clv_new->ir_fn); ir_preset = clv_new->ir_preset; memcpy (chn_inp, clv_new->chn_inp, sizeof(chn_inp)); memcpy (chn_out, clv_new->chn_out, sizeof(chn_out)); @@ -152,9 +152,6 @@ void LV2convolv::clv_clone_settings(LV2convolv *clv_new) { fragment_size = clv_new->fragment_size; clv_new->convproc = NULL; - if (ir_fn) { - clv_new->ir_fn = strdup (ir_fn); - } } void LV2convolv::clv_free (void) { |