mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2025-01-15 01:58:17 +08:00
Fix: change_index wasn't being cleared by deallocate.
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@235 00440858-1255-0410-a3e6-75ea37f81c3a
This commit is contained in:
parent
f24915d09c
commit
aa8adec266
@ -377,6 +377,7 @@ deallocate_change_index (RealDispatch *d,
|
||||
unsigned ch_ind = fm->change_index;
|
||||
unsigned from = d->base.n_changes - 1;
|
||||
ProtobufC_FD from_fd;
|
||||
fm->change_index = -1;
|
||||
if (ch_ind == from)
|
||||
{
|
||||
d->base.n_changes--;
|
||||
|
Loading…
x
Reference in New Issue
Block a user