summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-03-17 16:54:48 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-03-21 15:23:02 +0900
commitb027e58a96b4d86bf77d3af28c50226a558d2202 (patch)
treeb16c2d8e899f5d1be60b2b3c19301817494d9c0d /src
parentfc3472aae517432427bba94e07535af536e77971 (diff)
Evas filters: fix potential memory leak
Unlikely use case trying to delete a source when there are no sources yet. @fix
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/canvas/evas_object_text.c1
1 files changed, 1 insertions, 0 deletions
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
2397 2397
2398 if (!o->cur.filter.sources) 2398 if (!o->cur.filter.sources)
2399 { 2399 {
2400 if (!source) return;
2400 o->cur.filter.sources = eina_hash_string_small_new 2401 o->cur.filter.sources = eina_hash_string_small_new
2401 (EINA_FREE_CB(_filter_source_hash_free_cb)); 2402 (EINA_FREE_CB(_filter_source_hash_free_cb));
2402 } 2403 }