Fix memleak reported by klockwork:

If a jpeg image is rotated and we have allocated space for ptr_rotate,
then we should free it Always ... Not Only if the degrees are
180...because we allocate it always

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-06-28 13:39:45 +01:00
parent 6828cf2e29
commit d92edb51a4
1 changed files with 5 additions and 5 deletions

View File

@ -1083,11 +1083,11 @@ done:
to += hw;
}
}
if (ptr_rotate)
{
free(ptr_rotate);
ptr_rotate = NULL;
}
}
if (ptr_rotate)
{
free(ptr_rotate);
ptr_rotate = NULL;
}
if (region)
{