Skip to content

Commit

Permalink
Issue #63: Fixed failure to release pendingRequestTimeoutTimer when t…
Browse files Browse the repository at this point in the history
…argeting 10.7 or earlier.
  • Loading branch information
armadsen committed Aug 10, 2015
1 parent a3419ef commit 4f557f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/ORSSerialPort.m
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ - (void)dealloc
ORS_GCD_RELEASE(_pinPollTimer);
}

if (_pendingRequestTimeoutTimer) {
dispatch_source_cancel(_pendingRequestTimeoutTimer);
ORS_GCD_RELEASE(_pendingRequestTimeoutTimer);
}

self.requestHandlingQueue = nil;
self.selectSemaphore = nil;
}
Expand Down

0 comments on commit 4f557f1

Please sign in to comment.