mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 02:41:49 -05: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
1 changed files with 3 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue