Skip to content

Commit df52dfe

Browse files
committed
fix: fix typo and remove not needed caching of house arrest service
1 parent fcaca86 commit df52dfe

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

IOSDeviceLib/IOSDeviceLib.cpp

+3-8
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,6 @@ void cleanup_file_resources(const std::string& device_identifier, const std::str
210210
AFCConnectionClose(afc_connection_to_close);
211211
devices[device_identifier].apps_cache.erase(application_identifier);
212212
}
213-
214-
if (devices[device_identifier].services.count(kHouseArrest))
215-
{
216-
devices[device_identifier].services.erase(kHouseArrest);
217-
}
218213
}
219214

220215
void cleanup_file_resources(const std::string& device_identifier)
@@ -982,13 +977,13 @@ void get_application_infos(std::string device_identifier, std::string method_id)
982977

983978
CFStringRef cf_app_type_value = create_CFString("User");
984979
const void *client_opts_values_arr[] = { cf_app_type_value, cf_return_attributes_array };
985-
CFDictionaryRef clinet_opts_dict = CFDictionaryCreate(NULL, client_opts_keys_arr, client_opts_values_arr, 2, NULL, NULL);
980+
CFDictionaryRef client_opts_dict = CFDictionaryCreate(NULL, client_opts_keys_arr, client_opts_values_arr, 2, NULL, NULL);
986981

987982
CFStringRef cf_command_key = create_CFString("Command");
988983
CFStringRef cf_client_options_key = create_CFString("ClientOptions");
989984
const void *keys_arr[] = { cf_command_key, cf_client_options_key };
990985
CFStringRef cf_command_value = create_CFString("Browse");
991-
const void *values_arr[] = { cf_command_value, clinet_opts_dict };
986+
const void *values_arr[] = { cf_command_value, client_opts_dict };
992987
CFDictionaryRef dict_command = CFDictionaryCreate(NULL, keys_arr, values_arr, 2, NULL, NULL);
993988

994989
send_con_message(serviceInfo.connection, dict_command);
@@ -998,7 +993,7 @@ void get_application_infos(std::string device_identifier, std::string method_id)
998993
CFRelease(cf_app_type_key);
999994
CFRelease(cf_return_attrs_key);
1000995
CFRelease(cf_app_type_value);
1001-
CFRelease(clinet_opts_dict);
996+
CFRelease(client_opts_dict);
1002997
CFRelease(cf_command_key);
1003998
CFRelease(cf_client_options_key);
1004999
CFRelease(cf_command_value);

0 commit comments

Comments
 (0)