evas/language: #ifdef guard variable which is only used inside #ifdef

Summary:
this variable is already only changed inside an #ifdef, so declare and
free it only inside the same ifdef for clarity

ref 9d9aa8b6ae
CID 1400807

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10389
This commit is contained in:
Mike Blumenkrantz 2019-10-18 13:28:41 -04:00
parent 5559a229c3
commit 4158e17da6
1 changed files with 6 additions and 1 deletions

View File

@ -446,7 +446,10 @@ Eina_Bool
evas_bidi_props_reorder_line(Eina_Unicode *eina_ustr, size_t start, size_t len, const Evas_BiDi_Paragraph_Props *props, EvasBiDiStrIndex **_v_to_l)
{
EvasBiDiStrIndex *v_to_l = NULL;
FriBidiChar *ustr = NULL, *base_ustr = NULL;
FriBidiChar *ustr = NULL;
#ifdef EVAS_FRIBIDI_EINA_UNICODE_UNEQUAL
FriBidiChar *base_ustr = NULL;
#endif
if (!props)
return EINA_FALSE;
@ -502,7 +505,9 @@ evas_bidi_props_reorder_line(Eina_Unicode *eina_ustr, size_t start, size_t len,
return EINA_FALSE;
/* ERROR HANDLING */
error:
#ifdef EVAS_FRIBIDI_EINA_UNICODE_UNEQUAL
if (base_ustr) free(base_ustr);
#endif
_SAFE_FREE(v_to_l);
return EINA_TRUE;
}