Explorar el Código

Fixes Xcode 8 analyzer warning saying that it was missing a release in dealloc (#1678)

Sergio Campamá hace 9 años
padre
commit
71f4a9c6f3
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      objectivec/GPBDescriptor.m

+ 5 - 0
objectivec/GPBDescriptor.m

@@ -271,6 +271,11 @@ static NSArray *NewFieldsArrayForHasIndex(int hasIndex,
   return self;
   return self;
 }
 }
 
 
+- (void)dealloc {
+  [package_ release];
+  [super dealloc];
+}
+
 @end
 @end
 
 
 @implementation GPBOneofDescriptor
 @implementation GPBOneofDescriptor