summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-10-18 13:28:41 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-10-18 13:28:41 -0400
commit3b161da0ceb62e606a3cbcc98b5e16c78253a84c (patch)
tree6d30b6aae4458bce024b1dccc2f533565266a73e
parent4e2b9e208964bda733d75b26fc0cf480bd5635e9 (diff)
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 9d9aa8b6ae0c07ebe23e1ea3fcb81f8050311651 CID 1400807 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10389
-rw-r--r--src/lib/evas/common/language/evas_bidi_utils.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/evas/common/language/evas_bidi_utils.c b/src/lib/evas/common/language/evas_bidi_utils.c
index c836064..ab1afeb 100644
--- a/src/lib/evas/common/language/evas_bidi_utils.c
+++ b/src/lib/evas/common/language/evas_bidi_utils.c
@@ -446,7 +446,10 @@ Eina_Bool
446evas_bidi_props_reorder_line(Eina_Unicode *eina_ustr, size_t start, size_t len, const Evas_BiDi_Paragraph_Props *props, EvasBiDiStrIndex **_v_to_l) 446evas_bidi_props_reorder_line(Eina_Unicode *eina_ustr, size_t start, size_t len, const Evas_BiDi_Paragraph_Props *props, EvasBiDiStrIndex **_v_to_l)
447{ 447{
448 EvasBiDiStrIndex *v_to_l = NULL; 448 EvasBiDiStrIndex *v_to_l = NULL;
449 FriBidiChar *ustr = NULL, *base_ustr = NULL; 449 FriBidiChar *ustr = NULL;
450#ifdef EVAS_FRIBIDI_EINA_UNICODE_UNEQUAL
451 FriBidiChar *base_ustr = NULL;
452#endif
450 453
451 if (!props) 454 if (!props)
452 return EINA_FALSE; 455 return EINA_FALSE;
@@ -502,7 +505,9 @@ evas_bidi_props_reorder_line(Eina_Unicode *eina_ustr, size_t start, size_t len,
502 return EINA_FALSE; 505 return EINA_FALSE;
503/* ERROR HANDLING */ 506/* ERROR HANDLING */
504error: 507error:
508#ifdef EVAS_FRIBIDI_EINA_UNICODE_UNEQUAL
505 if (base_ustr) free(base_ustr); 509 if (base_ustr) free(base_ustr);
510#endif
506 _SAFE_FREE(v_to_l); 511 _SAFE_FREE(v_to_l);
507 return EINA_TRUE; 512 return EINA_TRUE;
508} 513}