forked from ShuriZma/suyu
1
0
Fork 0

web_browser: Only delete temporary directory if it was created

Prevents crashes with ShopN applet occasionally.
This commit is contained in:
Zach Hilman 2019-06-06 18:39:34 -04:00
parent d018ac2c60
commit 73dcb13619
1 changed files with 3 additions and 1 deletions

View File

@ -285,7 +285,9 @@ void WebBrowser::Finalize() {
broker.PushNormalDataFromApplet(IStorage{data});
broker.SignalStateChanged();
if (!temporary_dir.empty() && FileUtil::IsDirectory(temporary_dir)) {
FileUtil::DeleteDirRecursively(temporary_dir);
}
}
void WebBrowser::InitializeInternal() {