From fc32ca86417982d7fc90cdee9aaf7436313bf878 Mon Sep 17 00:00:00 2001 From: reuk Date: Thu, 29 May 2025 17:25:36 +0100 Subject: [PATCH] AlertWindow: Store a SafePointer to the associatedComponent --- modules/juce_gui_basics/windows/juce_AlertWindow.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/windows/juce_AlertWindow.h b/modules/juce_gui_basics/windows/juce_AlertWindow.h index 8fa5364b15..91b132f14c 100644 --- a/modules/juce_gui_basics/windows/juce_AlertWindow.h +++ b/modules/juce_gui_basics/windows/juce_AlertWindow.h @@ -587,7 +587,7 @@ private: OwnedArray textBlocks; Array allComps; StringArray textboxNames, comboBoxNames; - Component* const associatedComponent; + SafePointer associatedComponent; bool escapeKeyCancels = true; float desktopScale = 1.0f;