Skip to content

Commit 97a22e7

Browse files
Merge pull request #22 from telerik/vladimirov/fix-uninstall-err
Fix error when application is uninstalled manually
2 parents e2eb8db + 24ff682 commit 97a22e7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

IOSDeviceLib/IOSDeviceLib.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ void cleanup_file_resources(const std::string& device_identifier)
221221

222222
if (devices[device_identifier].apps_cache.size())
223223
{
224-
for (auto const& key_value_pair : devices[device_identifier].apps_cache)
224+
std::map<std::string, ApplicationCache> apps_cache_clone = devices[device_identifier].apps_cache;
225+
for (auto const& key_value_pair : apps_cache_clone)
225226
{
226227
cleanup_file_resources(device_identifier, key_value_pair.first);
227228
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ios-device-lib",
3-
"version": "0.4.7",
3+
"version": "0.4.8",
44
"description": "",
55
"types": "./typings/ios-device-lib.d.ts",
66
"main": "index.js",

0 commit comments

Comments
 (0)