forked from enlightenment/efl
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:
parent
6828cf2e29
commit
d92edb51a4
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue