mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-09 04:16:34 +00:00
CGE: Fix mismatched memory free.
This commit is contained in:
parent
b7a548f3c7
commit
3ce71737b5
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user