diff options
author | Nikias Bassen | 2009-03-19 03:15:31 +0100 |
---|---|---|
committer | Nikias Bassen | 2009-03-19 03:15:31 +0100 |
commit | 87957c6f9476655fee8512e46021b21db45c4018 (patch) | |
tree | 05c46da11d804960dca294ea781e6cd344534c28 | |
parent | 2c3c90055ba597ee9df271403de0dcdd620244f7 (diff) | |
download | usbmuxd-87957c6f9476655fee8512e46021b21db45c4018.tar.gz usbmuxd-87957c6f9476655fee8512e46021b21db45c4018.tar.bz2 |
forgot setting device_use_count variable in cleanup code
-rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -738,9 +738,11 @@ leave: } free(device_use_list); device_use_list = newlist; + device_use_count--; } else { free(device_use_list); device_use_list = NULL; + device_use_count = 0; } pthread_mutex_unlock(&usbmux_mutex); } |