mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-29 02:40:05 +00:00
iOS: fix a crash in ContentSharer upon sharing finish.
This commit is contained in:
parent
0aa41705ad
commit
b0d515f329
1 changed files with 3 additions and 1 deletions
|
|
@ -262,12 +262,14 @@ void ContentSharer::sharingFinished (bool succeeded, const String& errorDescript
|
|||
std::function<void (bool, String)> cb;
|
||||
std::swap (cb, callback);
|
||||
|
||||
String error (errorDescription);
|
||||
|
||||
#if JUCE_IOS || JUCE_ANDROID
|
||||
pimpl.reset();
|
||||
#endif
|
||||
|
||||
if (cb)
|
||||
cb (succeeded, errorDescription);
|
||||
cb (succeeded, error);
|
||||
}
|
||||
|
||||
void ContentSharer::deleteTemporaryFiles()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue