summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joshua Hill2010-05-24 15:34:22 -0400
committerGravatar Joshua Hill2010-05-24 15:34:22 -0400
commit473ad5b0a574e03c68baa31dcfc4a3024ce131a7 (patch)
tree00d1b11f8efc28ce159fdb9a1e59344df2c6e566
parent77df9a41d90ac645d69aa86dd9bb9ee09a9fb735 (diff)
downloadlibirecovery-473ad5b0a574e03c68baa31dcfc4a3024ce131a7.tar.gz
libirecovery-473ad5b0a574e03c68baa31dcfc4a3024ce131a7.tar.bz2
ooops forgot to cleanup usb context
-rw-r--r--src/libirecovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c
index f4d1cca..78745b1 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -153,7 +153,7 @@ irecv_error_t irecv_close(irecv_client_t client) {
}
if (client->context != NULL) {
- libusb_exit(NULL);
+ libusb_exit(client->context);
client->context = NULL;
}