diff options
author | Nikias Bassen | 2009-05-19 00:17:16 +0200 |
---|---|---|
committer | Matt Colyer | 2009-05-18 19:04:19 -0700 |
commit | 4ca7c7265fd9df3d60ba9cb2455004c63832acac (patch) | |
tree | 22c6eb52241a7828cc84b42c362ae662dfd3310d | |
parent | 9da6bc0c7e9cf7d5d458bbb9d3ef607757f2f48d (diff) | |
download | ifuse-4ca7c7265fd9df3d60ba9cb2455004c63832acac.tar.gz ifuse-4ca7c7265fd9df3d60ba9cb2455004c63832acac.tar.bz2 |
Modified to make it work with latest libiphone API changes.
Signed-off-by: Matt Colyer <matt@colyer.name>
-rw-r--r-- | 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); } |