aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx
diff options
context:
space:
mode:
authorEugene Sandulenko2013-04-24 01:23:31 +0300
committerEugene Sandulenko2013-04-24 01:23:31 +0300
commit3c0c6a5cb140b7ff84bbd5ba0fda6c5ddac68a09 (patch)
tree7aac744e58d62049e0eb9370e36b1e244e3ea4f4 /engines/sword25/gfx
parentc471a4120b3d9e1fd60b2d2e417cbc129d451ccd (diff)
downloadscummvm-rg350-3c0c6a5cb140b7ff84bbd5ba0fda6c5ddac68a09.tar.gz
scummvm-rg350-3c0c6a5cb140b7ff84bbd5ba0fda6c5ddac68a09.tar.bz2
scummvm-rg350-3c0c6a5cb140b7ff84bbd5ba0fda6c5ddac68a09.zip
SWORD25: Plug memory leak. CID 1003589
Diffstat (limited to 'engines/sword25/gfx')
-rw-r--r--engines/sword25/gfx/image/vectorimage.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sword25/gfx/image/vectorimage.cpp b/engines/sword25/gfx/image/vectorimage.cpp
index 81f4fc2ad5..84c674f276 100644
--- a/engines/sword25/gfx/image/vectorimage.cpp
+++ b/engines/sword25/gfx/image/vectorimage.cpp
@@ -190,6 +190,7 @@ Common::Rect CalculateBoundingBox(const VectorImageElement &vectorImageElement)
ArtVpath *vec = art_bez_path_to_vec(bez, 0.5);
if (vec[0].code == ART_END) {
+ free(vec);
continue;
} else {
x0 = x1 = vec[0].x;