forked from enlightenment/efl
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:
parent
4e2b9e2089
commit
3b161da0ce
|
@ -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)
|
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;
|
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)
|
if (!props)
|
||||||
return EINA_FALSE;
|
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;
|
return EINA_FALSE;
|
||||||
/* ERROR HANDLING */
|
/* ERROR HANDLING */
|
||||||
error:
|
error:
|
||||||
|
#ifdef EVAS_FRIBIDI_EINA_UNICODE_UNEQUAL
|
||||||
if (base_ustr) free(base_ustr);
|
if (base_ustr) free(base_ustr);
|
||||||
|
#endif
|
||||||
_SAFE_FREE(v_to_l);
|
_SAFE_FREE(v_to_l);
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue