Small code reorder to maybe make #3893 happy.

Use the ivar for the -open, so hopefully it lines up with the -close
in dealloc and isn't seen as an unbalanced "open".
pull/3918/head
Thomas Van Lenten 7 years ago
parent 6700f41c4b
commit baed06e694
  1. 2
      objectivec/GPBCodedOutputStream.m

@ -174,10 +174,10 @@ static void GPBWriteRawLittleEndian64(GPBOutputBufferState *state,
data:(NSMutableData *)data {
if ((self = [super init])) {
buffer_ = [data retain];
[output open];
state_.bytes = [data mutableBytes];
state_.size = [data length];
state_.output = [output retain];
[state_.output open];
}
return self;
}

Loading…
Cancel
Save