summaryrefslogtreecommitdiffstats
path: root/src/ifuse.c
diff options
context:
space:
mode:
authorGravatar Matt Colyer2008-08-04 23:41:56 -0700
committerGravatar Matt Colyer2008-08-04 23:41:56 -0700
commit62bcedced863a9c4ecc3601638635dfe172a9130 (patch)
tree9937b4f6fbb848c1854e0add40f7ee86bba10d88 /src/ifuse.c
parent294f6080e7c26cb390093eead11c8e0757e00fe2 (diff)
downloadlibimobiledevice-62bcedced863a9c4ecc3601638635dfe172a9130.tar.gz
libimobiledevice-62bcedced863a9c4ecc3601638635dfe172a9130.tar.bz2
Zack's C. rewrite of usbmux (with a few additions by Matt Colyer).
Diffstat (limited to 'src/ifuse.c')
-rw-r--r--src/ifuse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ifuse.c b/src/ifuse.c
index e4d14e5..900bb17 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -155,9 +155,10 @@ void *ifuse_init(struct fuse_conn_info *conn) {
155 return afc; 155 return afc;
156} 156}
157 157
158void ifuse_cleanup(AFClient *afc) { 158void ifuse_cleanup(void *data) {
159 AFClient *afc = (AFClient *)data;
159 if (afc) { 160 if (afc) {
160 iPhone *phone = afc->phone; 161 iPhone *phone = afc->connection->phone;
161 afc_disconnect(afc); 162 afc_disconnect(afc);
162 free_iPhone(phone); 163 free_iPhone(phone);
163 } 164 }