projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ea3435
)
Fix memory-leak in case of Vamp plugin setup error
author
Robin Gareus
<robin@gareus.org>
Sat, 24 Aug 2019 01:30:53 +0000
(
03:30
+0200)
committer
Robin Gareus
<robin@gareus.org>
Sat, 24 Aug 2019 01:31:49 +0000
(
03:31
+0200)
libs/vamp-plugins/TruePeak.cpp
patch
|
blob
|
history
diff --git
a/libs/vamp-plugins/TruePeak.cpp
b/libs/vamp-plugins/TruePeak.cpp
index 39152d1e7f0086e0cfe902b30a224c99446caa03..3d6c12ee2a7ab4b8af33356ff7b31691fe67402a 100644
(file)
--- a/
libs/vamp-plugins/TruePeak.cpp
+++ b/
libs/vamp-plugins/TruePeak.cpp
@@
-219,8
+219,10
@@
Resampler::setup (unsigned int fs_inp,
_inmax = k;
_pstep = s;
return reset ();
+ } else {
+ delete[] B;
+ return 1;
}
- else return 1;
}
void