CGE: Fix mismatched memory free.

This commit is contained in:
Paul Gilbert 2011-08-05 21:54:21 +10:00
parent b7a548f3c7
commit 3ce71737b5

View File

@ -187,7 +187,7 @@ uint16 Bitmap::moveVmap(uint8 *buf) {
uint16 vsiz = (uint8 *)_b - (uint8 *)_v;
uint16 siz = vsiz + _h * sizeof(HideDesc);
memcpy(buf, _v, siz);
free(_v);
delete[] _v;
_b = (HideDesc *)((_v = buf) + vsiz);
return siz;
}