diff options
author | Eugene Sandulenko | 2019-07-19 23:18:41 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:24 +0200 |
commit | f9422e43478aecb9430466a7da4651d0e3fc7a58 (patch) | |
tree | f2f6c0033a82aabb7a39979bbba8e0a9c12dc837 /engines | |
parent | b96049a2368f3707f566c7f4daf41fe41f7c3795 (diff) | |
download | scummvm-rg350-f9422e43478aecb9430466a7da4651d0e3fc7a58.tar.gz scummvm-rg350-f9422e43478aecb9430466a7da4651d0e3fc7a58.tar.bz2 scummvm-rg350-f9422e43478aecb9430466a7da4651d0e3fc7a58.zip |
HDB: Fix another incorrect allocation/deallocation.
This leads to double free, because gfxList contains list to pointers to gfxCache,
which is managed by the Gfx code
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/ai.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index bb862220a2..ab8cb9abe4 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -596,13 +596,6 @@ struct AnimTarget { AnimTarget() : x(0), y(0), start(0), end(0), vel(0), animCycle(0), animFrame(0), killAuto(false), inMap(false) { for (int i = 0; i < kMaxAnimTFrames; i++) { - gfxList[i] = new Tile; - } - } - - ~AnimTarget() { - for (int i = 0; i < kMaxAnimTFrames; i++) { - delete gfxList[i]; gfxList[i] = NULL; } } |