Commit baed06e6 authored by Thomas Van Lenten's avatar Thomas Van Lenten

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".
parent 6700f41c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment