From baed06e69443613c531a3580315759c08db6667e Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Fri, 17 Nov 2017 11:55:02 -0500 Subject: 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". --- objectivec/GPBCodedOutputStream.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'objectivec') diff --git a/objectivec/GPBCodedOutputStream.m b/objectivec/GPBCodedOutputStream.m index c299040f..f832e8a6 100644 --- a/objectivec/GPBCodedOutputStream.m +++ b/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; } -- cgit v1.2.3