mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Android: fix a crash in painting when size of the array to allocate is 0.
This commit is contained in:
parent
c81c33404d
commit
f4bfa6bec5
1 changed files with 4 additions and 0 deletions
|
|
@ -526,6 +526,10 @@ public:
|
|||
sizeAllocated = sizeNeeded;
|
||||
buffer = GlobalRef (env->NewIntArray (sizeNeeded));
|
||||
}
|
||||
else if (sizeNeeded == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (jint* dest = env->GetIntArrayElements ((jintArray) buffer.get(), 0))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue