Browse Source

Fix a memory leak in the String class

Signed-off-by: falkTX <falktx@falktx.com>
pull/375/head
parent
commit
e207aafcb2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      distrho/extra/String.hpp

+ 1
- 1
distrho/extra/String.hpp View File

@@ -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


Loading…
Cancel
Save