Merge pull request #1131 from thomasvl/fix_sem_leak

Release the semaphore in dealloc, fixing leak.
pull/676/merge
Thomas Van Lenten 9 years ago
commit af8e7ef9a3
  1. 1
      objectivec/GPBMessage.m

@ -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…
Cancel
Save