From a7b9da40a2294ea374bb3b746acfa1abea80895f Mon Sep 17 00:00:00 2001 From: hogliux Date: Thu, 31 Aug 2017 10:57:44 +0100 Subject: [PATCH] Fixed a crash when animators delete top-level components during a screen rotate animation --- .../juce_gui_basics/native/juce_ios_UIViewComponentPeer.mm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/juce_gui_basics/native/juce_ios_UIViewComponentPeer.mm b/modules/juce_gui_basics/native/juce_ios_UIViewComponentPeer.mm index e61f2621bb..113eacc859 100644 --- a/modules/juce_gui_basics/native/juce_ios_UIViewComponentPeer.mm +++ b/modules/juce_gui_basics/native/juce_ios_UIViewComponentPeer.mm @@ -312,8 +312,9 @@ private: static void sendScreenBoundsUpdate (JuceUIViewController* c) { JuceUIView* juceView = (JuceUIView*) [c view]; - jassert (juceView != nil && juceView->owner != nullptr); - juceView->owner->updateTransformAndScreenBounds(); + + if (juceView != nil && juceView->owner != nullptr) + juceView->owner->updateTransformAndScreenBounds(); } static bool isKioskModeView (JuceUIViewController* c)