summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2015-01-23 12:43:49 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2015-01-23 12:43:49 +0100
commit9b5cd12e689523f60d175dea7e3c6ad3880ca535 (patch)
treecc74dd19f6964754bef704692da542f1de1fce59
parent3ce2da9be32435a58467158d701d2723f10217da (diff)
elm_image: Fix memory leak in GETDAT macro.
Free data2 on error path. CID: 1265609, 1265610, 1265611, 1265612
-rw-r--r--src/lib/elm_image.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c
index 4ca45fa8f..75881e40b 100644
--- a/src/lib/elm_image.c
+++ b/src/lib/elm_image.c
@@ -1131,7 +1131,10 @@ _elm_image_smart_rotate_180(Elm_Image_Data *sd)
1131 w = neww; h = newh; \ 1131 w = neww; h = newh; \
1132 evas_object_image_size_set(sd->img, w, h); \ 1132 evas_object_image_size_set(sd->img, w, h); \
1133 data = evas_object_image_data_get(sd->img, EINA_TRUE); \ 1133 data = evas_object_image_data_get(sd->img, EINA_TRUE); \
1134 if (!data) return 1134 if (!data) { \
1135 free(data2); \
1136 return; \
1137 } \
1135 1138
1136#define PUTDAT \ 1139#define PUTDAT \
1137 evas_object_image_data_set(sd->img, data); \ 1140 evas_object_image_data_set(sd->img, data); \