summaryrefslogtreecommitdiff
path: root/src/lib/emile
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-04-20 13:06:41 -0400
committerChris Michael <cp.michael@samsung.com>2015-04-20 13:06:41 -0400
commit843d4705d802c54b70f15ad151ebef532116e446 (patch)
treec58125f7485c21c104a25a57b1fa17f24cfd488d /src/lib/emile
parentc66275c99b6ccac9f6ecea04b349c419f7ac390b (diff)
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>
Diffstat (limited to 'src/lib/emile')
-rw-r--r--src/lib/emile/emile_image.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/emile/emile_image.c b/src/lib/emile/emile_image.c
index dc8af2c196..330bc2fec9 100644
--- a/src/lib/emile/emile_image.c
+++ b/src/lib/emile/emile_image.c
@@ -510,7 +510,10 @@ _emile_tgv_data(Emile_Image *image,
510 image->block.width, image->block.height); 510 image->block.width, image->block.height);
511 511
512 if (!eina_rectangle_intersection(&current, &master)) 512 if (!eina_rectangle_intersection(&current, &master))
513 continue; 513 {
514 eina_binbuf_free(data_start);
515 continue;
516 }
514 517
515 if (image->compress) 518 if (image->compress)
516 { 519 {