jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b027e58a96b4d86bf77d3af28c50226a558d2202

commit b027e58a96b4d86bf77d3af28c50226a558d2202
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Mon Mar 17 16:54:48 2014 +0900

    Evas filters: fix potential memory leak
    
    Unlikely use case trying to delete a source when there are no
    sources yet.
    
    @fix
---
 src/lib/evas/canvas/evas_object_text.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/evas/canvas/evas_object_text.c 
b/src/lib/evas/canvas/evas_object_text.c
index 169ab3e..1e56bfa 100644
--- a/src/lib/evas/canvas/evas_object_text.c
+++ b/src/lib/evas/canvas/evas_object_text.c
@@ -2397,6 +2397,7 @@ _evas_text_filter_source_set(Eo *eo_obj, Evas_Text_Data 
*o, const char *name, Ev
 
    if (!o->cur.filter.sources)
      {
+        if (!source) return;
         o->cur.filter.sources = eina_hash_string_small_new
               (EINA_FREE_CB(_filter_source_hash_free_cb));
      }

-- 


Reply via email to