Fix memleak reported by Coverity.
NB: Fixes Coverity CID1039657 Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
4e103fd858
commit
eabc1482f9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue