Browse Source

iOS: Fix a crash in NativeMessageBox implementation when shown modally

v6.1.6
ed 3 years ago
parent
commit
3b97c40c2d
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      modules/juce_gui_basics/native/juce_ios_Windowing.mm

+ 6
- 3
modules/juce_gui_basics/native/juce_ios_Windowing.mm View File

@@ -477,10 +477,13 @@ public:
void buttonClicked (int buttonIndex) noexcept
{
if (callback != nullptr)
callback->modalStateFinished (buttonIndex);
result = buttonIndex;
delete this;
if (callback != nullptr)
{
callback->modalStateFinished (result);
delete this;
}
}
private:


Loading…
Cancel
Save