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:
lahiker42 2010-05-26 01:25:38 +00:00
parent f24915d09c
commit aa8adec266

View File

@ -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--;