aboutsummaryrefslogtreecommitdiff
path: root/objectivec/GPBMessage.m
diff options
context:
space:
mode:
authorThomas Van Lenten <thomasvl@google.com>2016-01-12 09:04:08 -0500
committerThomas Van Lenten <thomasvl@google.com>2016-01-12 09:04:08 -0500
commit4d663376e2023855e780459cdf612e0e33e3485a (patch)
tree003017a6f867568bc0837868da07bb9df95b7a02 /objectivec/GPBMessage.m
parentc64146f195881f349bf470948d7b5e1e3704b077 (diff)
downloadprotobuf-4d663376e2023855e780459cdf612e0e33e3485a.tar.gz
protobuf-4d663376e2023855e780459cdf612e0e33e3485a.tar.bz2
protobuf-4d663376e2023855e780459cdf612e0e33e3485a.zip
Release the semaphore in dealloc, fixing leak.
Diffstat (limited to 'objectivec/GPBMessage.m')
-rw-r--r--objectivec/GPBMessage.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/objectivec/GPBMessage.m b/objectivec/GPBMessage.m
index 208cfe4e..fdb695ec 100644
--- a/objectivec/GPBMessage.m
+++ b/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];
}