diff options
author | Nikias Bassen | 2019-09-26 04:03:21 +0200 |
---|---|---|
committer | Nikias Bassen | 2019-09-26 04:03:21 +0200 |
commit | e98d13746fc6c007319e94849883d8ab6feabfb6 (patch) | |
tree | 4b332702173c2a87d4ef4354461a3adfd1c18178 /src/libirecovery.c | |
parent | 7aa0c6510eb8a639deef921ba397d9385cb44c40 (diff) | |
download | libirecovery-e98d13746fc6c007319e94849883d8ab6feabfb6.tar.gz libirecovery-e98d13746fc6c007319e94849883d8ab6feabfb6.tar.bz2 |
Fix crash when calling CFRunLoopStop without the runloop being set
Diffstat (limited to 'src/libirecovery.c')
-rw-r--r-- | src/libirecovery.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index 9d5911d..2ebe89c 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -2269,7 +2269,9 @@ IRECV_API irecv_error_t irecv_device_event_unsubscribe(irecv_device_event_contex if (num == 0) { #ifdef HAVE_IOKIT - CFRunLoopStop(iokit_runloop); + if (iokit_runloop) { + CFRunLoopStop(iokit_runloop); + } #endif thread_join(th_event_handler); thread_free(th_event_handler); |