diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2017-11-17 11:55:02 -0500 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2017-11-17 12:32:22 -0500 |
commit | baed06e69443613c531a3580315759c08db6667e (patch) | |
tree | cf2701f88219e280f13ad821ef8e41e2da93c24d /objectivec | |
parent | 6700f41c4b699b0e31ab2bf90036c04273784fd8 (diff) |
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".
Diffstat (limited to 'objectivec')
-rw-r--r-- | objectivec/GPBCodedOutputStream.m | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |