From 4ca7c7265fd9df3d60ba9cb2455004c63832acac Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 19 May 2009 00:17:16 +0200 Subject: Modified to make it work with latest libiphone API changes. Signed-off-by: Matt Colyer --- src/ifuse.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') 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); } -- cgit v1.1-32-gdbae