diff options
| -rw-r--r-- | src/installation_proxy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/installation_proxy.c b/src/installation_proxy.c index 7c2d336..9a6f1ab 100644 --- a/src/installation_proxy.c +++ b/src/installation_proxy.c | |||
| @@ -261,7 +261,7 @@ LIBIMOBILEDEVICE_API instproxy_error_t instproxy_client_free(instproxy_client_t | |||
| 261 | if (!client) | 261 | if (!client) |
| 262 | return INSTPROXY_E_INVALID_ARG; | 262 | return INSTPROXY_E_INVALID_ARG; |
| 263 | 263 | ||
| 264 | property_list_service_client_free(client->parent); | 264 | property_list_service_client_t parent = client->parent; |
| 265 | client->parent = NULL; | 265 | client->parent = NULL; |
| 266 | if (client->receive_status_thread) { | 266 | if (client->receive_status_thread) { |
| 267 | debug_info("joining receive_status_thread"); | 267 | debug_info("joining receive_status_thread"); |
| @@ -269,6 +269,7 @@ LIBIMOBILEDEVICE_API instproxy_error_t instproxy_client_free(instproxy_client_t | |||
| 269 | thread_free(client->receive_status_thread); | 269 | thread_free(client->receive_status_thread); |
| 270 | client->receive_status_thread = THREAD_T_NULL; | 270 | client->receive_status_thread = THREAD_T_NULL; |
| 271 | } | 271 | } |
| 272 | property_list_service_client_free(parent); | ||
| 272 | mutex_destroy(&client->mutex); | 273 | mutex_destroy(&client->mutex); |
| 273 | free(client); | 274 | free(client); |
| 274 | 275 | ||
