mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-12-30 21:25:36 +00:00
web_browser: Only delete temporary directory if it was created
Prevents crashes with ShopN applet occasionally.
This commit is contained in:
parent
d018ac2c60
commit
73dcb13619
|
@ -285,8 +285,10 @@ void WebBrowser::Finalize() {
|
||||||
broker.PushNormalDataFromApplet(IStorage{data});
|
broker.PushNormalDataFromApplet(IStorage{data});
|
||||||
broker.SignalStateChanged();
|
broker.SignalStateChanged();
|
||||||
|
|
||||||
|
if (!temporary_dir.empty() && FileUtil::IsDirectory(temporary_dir)) {
|
||||||
FileUtil::DeleteDirRecursively(temporary_dir);
|
FileUtil::DeleteDirRecursively(temporary_dir);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void WebBrowser::InitializeInternal() {
|
void WebBrowser::InitializeInternal() {
|
||||||
using WebAppletInitializer = void (WebBrowser::*)();
|
using WebAppletInitializer = void (WebBrowser::*)();
|
||||||
|
|
Loading…
Reference in a new issue