diff options
| author | 2019-06-06 18:39:34 -0400 | |
|---|---|---|
| committer | 2019-06-24 20:05:11 -0400 | |
| commit | 73dcb13619fc6603be628a7eea275ea02818c1ce (patch) | |
| tree | 8812635bfd61575c5827ac18ed5f4b8b12b30f64 /src | |
| parent | web_browser: Take ECommerce applet frontend optionally in constructor (diff) | |
| download | yuzu-73dcb13619fc6603be628a7eea275ea02818c1ce.tar.gz yuzu-73dcb13619fc6603be628a7eea275ea02818c1ce.tar.xz yuzu-73dcb13619fc6603be628a7eea275ea02818c1ce.zip | |
web_browser: Only delete temporary directory if it was created
Prevents crashes with ShopN applet occasionally.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/am/applets/web_browser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/service/am/applets/web_browser.cpp b/src/core/hle/service/am/applets/web_browser.cpp index 58efebf06..3c3af476c 100644 --- a/src/core/hle/service/am/applets/web_browser.cpp +++ b/src/core/hle/service/am/applets/web_browser.cpp | |||
| @@ -285,7 +285,9 @@ void WebBrowser::Finalize() { | |||
| 285 | broker.PushNormalDataFromApplet(IStorage{data}); | 285 | broker.PushNormalDataFromApplet(IStorage{data}); |
| 286 | broker.SignalStateChanged(); | 286 | broker.SignalStateChanged(); |
| 287 | 287 | ||
| 288 | FileUtil::DeleteDirRecursively(temporary_dir); | 288 | if (!temporary_dir.empty() && FileUtil::IsDirectory(temporary_dir)) { |
| 289 | FileUtil::DeleteDirRecursively(temporary_dir); | ||
| 290 | } | ||
| 289 | } | 291 | } |
| 290 | 292 | ||
| 291 | void WebBrowser::InitializeInternal() { | 293 | void WebBrowser::InitializeInternal() { |