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;