==8653== Invalid free() / delete / delete[] / realloc() ==8653== at 0x4C2A720: operator delete(void*) (vg_replace_malloc.c:575) ==8653== by 0x52F860: Sci::StablePointerArray::erase_at(unsigned int) (lists32.h:132) ==8653== by 0x52DB3C: Sci::Plane::decrementScreenItemArrayCounts(Sci::Plane*, bool) (plane32.cpp:440) ==8653== by 0x52E869: Sci::Plane::redrawAll(Sci::Plane*, Sci::PlaneList&, Sci::DrawList&, Sci::RectList&) (plane32.cpp:614) ==8653== by 0x5281C1: Sci::GfxFrameout::calcLists(Common::Array&, Common::Array&, Common::Rect&) (frameout.cpp:589) ==8653== by 0x5270F6: Sci::GfxFrameout::frameOut(bool, Common::Rect&) (frameout.cpp:321) ==8653== by 0x52A460: Sci::GfxFrameout::kernelFrameout(bool) (frameout.cpp:1853) ==8653== by 0x523E8E: Sci::kFrameOut(Sci::EngineState*, int, Sci::reg_t*) (kgraphics32.cpp:129) ==8653== by 0x4C9590: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:386) ==8653== by 0x4CB70A: Sci::run_vm(Sci::EngineState*) (vm.cpp:872) ==8653== by 0x47D478: Sci::SciEngine::runGame() (sci.cpp:750) ==8653== by 0x47BC7F: Sci::SciEngine::run() (sci.cpp:386) ==8653== Address 0x11dfd060 is 0 bytes inside a block of size 152 free'd ==8653== at 0x4C2A720: operator delete(void*) (vg_replace_malloc.c:575) ==8653== by 0x52F860: Sci::StablePointerArray::erase_at(unsigned int) (lists32.h:132) ==8653== by 0x52DB27: Sci::Plane::decrementScreenItemArrayCounts(Sci::Plane*, bool) (plane32.cpp:439) ==8653== by 0x52E869: Sci::Plane::redrawAll(Sci::Plane*, Sci::PlaneList&, Sci::DrawList&, Sci::RectList&) (plane32.cpp:614) ==8653== by 0x5281C1: Sci::GfxFrameout::calcLists(Common::Array&, Common::Array&, Common::Rect&) (frameout.cpp:589) ==8653== by 0x5270F6: Sci::GfxFrameout::frameOut(bool, Common::Rect&) (frameout.cpp:321) ==8653== by 0x52A460: Sci::GfxFrameout::kernelFrameout(bool) (frameout.cpp:1853) ==8653== by 0x523E8E: Sci::kFrameOut(Sci::EngineState*, int, Sci::reg_t*) (kgraphics32.cpp:129) ==8653== by 0x4C9590: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:386) ==8653== by 0x4CB70A: Sci::run_vm(Sci::EngineState*) (vm.cpp:872) ==8653== by 0x47D478: Sci::SciEngine::runGame() (sci.cpp:750) ==8653== by 0x47BC7F: Sci::SciEngine::run() (sci.cpp:386) ==8653== Block was alloc'd at ==8653== at 0x4C29540: operator new(unsigned long) (vg_replace_malloc.c:333) ==8653== by 0x52F3CA: Sci::Plane::addPicInternal(int, Common::Point const*, bool) (plane32.cpp:97) ==8653== by 0x52CBE4: Sci::Plane::changePic() (plane32.cpp:128) ==8653== by 0x52EDC2: Sci::Plane::update(Sci::Plane const*, Common::Rect const&) (plane32.cpp:688) ==8653== by 0x526FA1: Sci::GfxFrameout::updatePlane(Sci::Plane*) (frameout.cpp:279) ==8653== by 0x526DC9: Sci::GfxFrameout::kernelUpdatePlane(Sci::reg_t) (frameout.cpp:236) ==8653== by 0x523D15: Sci::kUpdatePlane(Sci::EngineState*, int, Sci::reg_t*) (kgraphics32.cpp:108) ==8653== by 0x4C9590: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:386) ==8653== by 0x4CB70A: Sci::run_vm(Sci::EngineState*) (vm.cpp:872) ==8653== by 0x4BC332: Sci::invokeSelector(Sci::EngineState*, Sci::reg_t, int, int, Sci::reg_t*, int, Sci::reg_t const*) (selector.cpp:259) ==8653== by 0x491999: Sci::kListEachElementDo(Sci::EngineState*, int, Sci::reg_t*) (klists.cpp:561) ==8653== by 0x4C9A84: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:444) ==8653==