Please add this patch to fix an Android crash


#1

On first paint I often get crashes. This fixes the problem:

— juce/JuceLibraryCode/modules/juce_gui_basics/native/juce_android_Windowing.cpp
+++ juce/JuceLibraryCode/modules/juce_gui_basics/native/juce_android_Windowing.cpp
@@ -483,11 +483,11 @@
env->DeleteLocalRef (rect);

     const Rectangle<int> clip (left, top, right - left, bottom - top);

     const int sizeNeeded = clip.getWidth() * clip.getHeight();
-        if (sizeAllocated < sizeNeeded)
+        if (!buffer.get() || sizeAllocated < sizeNeeded)
     {
         buffer.clear();
         sizeAllocated = sizeNeeded;