1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

iOS: Fix a crash in NativeMessageBox implementation when shown modally

This commit is contained in:
ed 2021-08-31 16:24:29 +01:00
parent 5dfae8b58b
commit 3b97c40c2d

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: