Skip to content

Commit

Permalink
Destroy mutex on distant object deallocation
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoNatan committed Nov 10, 2019
1 parent 62dfca6 commit 3929323
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DetoxIPC/_DTXIPCDistantObject.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ + (instancetype)_distantObjectWithConnection:(DTXIPCConnection*)connection synch
return rv;
}

- (void)dealloc
{
pthread_mutex_destroy(&_pendingMutex);
}

- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
NSMethodSignature* s = [super methodSignatureForSelector:aSelector];
Expand Down

0 comments on commit 3929323

Please sign in to comment.