DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit e207aafcb289008881bca53df7effa3736f922ce
parent cbc326aa3067262b91f781b35b10fea438df15aa
Author: falkTX <falktx@falktx.com>
Date:   Thu, 10 Feb 2022 13:13:31 +0000

Fix a memory leak in the String class

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdistrho/extra/String.hpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/distrho/extra/String.hpp b/distrho/extra/String.hpp @@ -861,7 +861,7 @@ public: std::memcpy(newBuf, fBuffer, fBufferLen); std::memcpy(newBuf + fBufferLen, strBuf, strBufLen + 1); - return String(newBuf); + return String(newBuf, false); } String operator+(const String& str) noexcept