emile: Fix resource leak
Summary: This fixes Coverity CID1288918 where data_start variable was being leaked if the rectangles did not intersect. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
c66275c99b
commit
843d4705d8
|
@ -510,7 +510,10 @@ _emile_tgv_data(Emile_Image *image,
|
|||
image->block.width, image->block.height);
|
||||
|
||||
if (!eina_rectangle_intersection(¤t, &master))
|
||||
continue;
|
||||
{
|
||||
eina_binbuf_free(data_start);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (image->compress)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue