forked from enlightenment/efl
Evas filters: fix potential memory leak
Unlikely use case trying to delete a source when there are no sources yet. @fix
This commit is contained in:
parent
fc3472aae5
commit
b027e58a96
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue