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

FileChooser: Avoid calling member functions on pimpl after it is destroyed

This commit is contained in:
reuk 2021-12-15 16:42:20 +00:00
parent 37b92f6882
commit 038d6dff32
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -300,9 +300,8 @@ private:
void pickerWasCancelled()
{
cancelPendingUpdate();
owner.finished ({});
exitModalState (0);
// Calling owner.finished will delete this Pimpl instance, so don't call any more member functions here!
}
//==============================================================================