Merge pull request #1131 from thomasvl/fix_sem_leak
Release the semaphore in dealloc, fixing leak.
This commit is contained in:
commit
af8e7ef9a3
@ -886,6 +886,7 @@ static GPBUnknownFieldSet *GetOrMakeUnknownFields(GPBMessage *self) {
|
||||
- (void)dealloc {
|
||||
[self internalClear:NO];
|
||||
NSCAssert(!autocreator_, @"Autocreator was not cleared before dealloc.");
|
||||
dispatch_release(readOnlySemaphore_);
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user