From e2dc460927b2d6db8beb7a1d3cee6008436bbcdc Mon Sep 17 00:00:00 2001 From: luigisambuy Date: Tue, 16 Aug 2016 14:55:43 +0100 Subject: [PATCH] Made the Desktop class clear any pending animations before shutting down. --- modules/juce_gui_basics/components/juce_Desktop.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/components/juce_Desktop.cpp b/modules/juce_gui_basics/components/juce_Desktop.cpp index 26cc3c9d59..8c603e993c 100644 --- a/modules/juce_gui_basics/components/juce_Desktop.cpp +++ b/modules/juce_gui_basics/components/juce_Desktop.cpp @@ -36,7 +36,8 @@ Desktop::Desktop() Desktop::~Desktop() { setScreenSaverEnabled (true); - + animator.cancelAllAnimations (false); + jassert (instance == this); instance = nullptr;