efl/evas_bidi: Fix memleak.
authorStefan Schmidt <stefan@datenfreihafen.org>
Wed, 19 Dec 2012 09:28:02 +0000 (09:28 +0000)
committerStefan Schmidt <stefan@datenfreihafen.org>
Wed, 19 Dec 2012 09:28:02 +0000 (09:28 +0000)
Make sure we also free udelmin when we retrun from from the for loop early.

SVN revision: 81334

src/lib/evas/common/language/evas_bidi_utils.c

index 8ad70ac..0d02d2e 100644 (file)
@@ -182,6 +182,7 @@ evas_bidi_segment_idxs_get(const Eina_Unicode *str, const char *delim)
                        if (!tmp_ret)
                          {
                             free(ret);
+                            free(udelim);
                             return NULL;
                          }
                        ret = tmp_ret;