From fc9081a6a11f01b13bae72daa8f053ed4b463490 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 19 May 2009 00:17:16 +0200 Subject: [PATCH] Modified to make it work with latest libiphone API changes. --- src/ifuse.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ifuse.c b/src/ifuse.c index 3364d35..0aac298 100644 --- a/src/ifuse.c +++ b/src/ifuse.c @@ -239,7 +239,10 @@ void *ifuse_init_with_service(struct fuse_conn_info *conn, const char *service_n return NULL; } - iphone_afc_new_client(phone, 3432, port, &afc); + iphone_afc_new_client(phone, port, &afc); + + iphone_lckd_free_client(control); + control = NULL; return afc; } @@ -249,7 +252,9 @@ void ifuse_cleanup(void *data) iphone_afc_client_t afc = (iphone_afc_client_t) data; iphone_afc_free_client(afc); - iphone_lckd_free_client(control); + if (control) { + iphone_lckd_free_client(control); + } iphone_free_device(phone); } -- 1.6.0.4