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:
Chris Michael 2015-04-20 13:06:41 -04:00
parent c66275c99b
commit 843d4705d8
1 changed files with 4 additions and 1 deletions

View File

@ -510,7 +510,10 @@ _emile_tgv_data(Emile_Image *image,
image->block.width, image->block.height);
if (!eina_rectangle_intersection(&current, &master))
continue;
{
eina_binbuf_free(data_start);
continue;
}
if (image->compress)
{