summaryrefslogtreecommitdiffstats
path: root/src/ifuse.c
diff options
context:
space:
mode:
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 }