diff options
author | Nipun Garg | 2019-07-18 18:17:02 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:23 +0200 |
commit | ea77240d4e85873fd5f006b10981509156ddba73 (patch) | |
tree | e6f320fd2baf442eb7bbc6b45b73d6138263d61e | |
parent | 5363b38fe51b45ecd07ee9d87933ab33c65984b2 (diff) | |
download | scummvm-rg350-ea77240d4e85873fd5f006b10981509156ddba73.tar.gz scummvm-rg350-ea77240d4e85873fd5f006b10981509156ddba73.tar.bz2 scummvm-rg350-ea77240d4e85873fd5f006b10981509156ddba73.zip |
HDB: Fix memory leak due to removed animTargets
-rw-r--r-- | engines/hdb/ai-lists.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/hdb/ai-lists.cpp b/engines/hdb/ai-lists.cpp index 39b3970a1d..2b122f4920 100644 --- a/engines/hdb/ai-lists.cpp +++ b/engines/hdb/ai-lists.cpp @@ -128,6 +128,7 @@ void AI::animateTargets() { if (at->killAuto) autoDeactivate(at->x, at->y); + delete _animTargets[i]; _animTargets.remove_at(i); i--; continue; |