mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
VST3 hosting memory allocation fix.
This commit is contained in:
parent
2058ffd551
commit
1fb3ee2e14
1 changed files with 5 additions and 1 deletions
|
|
@ -2112,7 +2112,11 @@ private:
|
|||
MemoryBlock mem;
|
||||
|
||||
if (mem.fromBase64Encoding (state->getAllSubText()))
|
||||
stream = new Steinberg::MemoryStream (mem.getData(), (TSize) mem.getSize());
|
||||
{
|
||||
stream = new Steinberg::MemoryStream();
|
||||
stream->setSize ((TSize) mem.getSize());
|
||||
mem.copyTo (stream->getData(), 0, mem.getSize());
|
||||
}
|
||||
}
|
||||
|
||||
return stream;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue