mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-10 10:17:58 -05:00
web_browser: Only delete temporary directory if it was created
Prevents crashes with ShopN applet occasionally.
This commit is contained in:
@ -285,7 +285,9 @@ void WebBrowser::Finalize() {
|
||||
broker.PushNormalDataFromApplet(IStorage{data});
|
||||
broker.SignalStateChanged();
|
||||
|
||||
FileUtil::DeleteDirRecursively(temporary_dir);
|
||||
if (!temporary_dir.empty() && FileUtil::IsDirectory(temporary_dir)) {
|
||||
FileUtil::DeleteDirRecursively(temporary_dir);
|
||||
}
|
||||
}
|
||||
|
||||
void WebBrowser::InitializeInternal() {
|
||||
|
Reference in New Issue
Block a user