diff options
author | Chris Michael <cp.michael@samsung.com> | 2013-07-08 08:35:33 +0100 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2013-07-08 08:35:33 +0100 |
commit | eabc1482f91acbe3a56b602a660038bc32cfeb33 (patch) | |
tree | d3111224e81987a25c9233a64fc2115337995ede /src/lib/evas/common | |
parent | 4e103fd858f449b2fa6b0449cbc92c89184cd818 (diff) |
Fix memleak reported by Coverity.
NB: Fixes Coverity CID1039657
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/evas/common')
-rw-r--r-- | src/lib/evas/common/language/evas_bidi_utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/evas/common/language/evas_bidi_utils.c b/src/lib/evas/common/language/evas_bidi_utils.c index 0707f4ef15..afadcf2ca7 100644 --- a/src/lib/evas/common/language/evas_bidi_utils.c +++ b/src/lib/evas/common/language/evas_bidi_utils.c | |||
@@ -127,6 +127,9 @@ evas_bidi_shape_string(Eina_Unicode *eina_ustr, const Evas_BiDi_Paragraph_Props | |||
127 | join_types = (EvasBiDiJoiningType *) malloc(sizeof(EvasBiDiJoiningType) * len); | 127 | join_types = (EvasBiDiJoiningType *) malloc(sizeof(EvasBiDiJoiningType) * len); |
128 | if (!join_types) | 128 | if (!join_types) |
129 | { | 129 | { |
130 | #ifdef EVAS_FRIBIDI_EINA_UNICODE_UNEQUAL | ||
131 | if (base_ustr) free(base_ustr); | ||
132 | #endif | ||
130 | return EINA_FALSE; | 133 | return EINA_FALSE; |
131 | } | 134 | } |
132 | fribidi_get_joining_types(ustr, len, join_types); | 135 | fribidi_get_joining_types(ustr, len, join_types); |