Fix memleak reported by Coverity.

NB: Fixes Coverity CID1039657

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-07-08 08:35:33 +01:00
parent 4e103fd858
commit eabc1482f9
1 changed files with 3 additions and 0 deletions

View File

@ -127,6 +127,9 @@ evas_bidi_shape_string(Eina_Unicode *eina_ustr, const Evas_BiDi_Paragraph_Props
join_types = (EvasBiDiJoiningType *) malloc(sizeof(EvasBiDiJoiningType) * len);
if (!join_types)
{
#ifdef EVAS_FRIBIDI_EINA_UNICODE_UNEQUAL
if (base_ustr) free(base_ustr);
#endif
return EINA_FALSE;
}
fribidi_get_joining_types(ustr, len, join_types);