forked from enlightenment/efl
elm_cnp: free array when going out of scope
this was missing and indeed a memory leak.
This commit is contained in:
parent
bcbe56ecdd
commit
a491e95dea
|
@ -104,6 +104,7 @@ elm_cnp_selection_set(Evas_Object *obj, Elm_Sel_Type selection,
|
||||||
ERR("You cannot specify more than one format when setting selection");
|
ERR("You cannot specify more than one format when setting selection");
|
||||||
}
|
}
|
||||||
mime_type = eina_array_data_get(tmp, 0);
|
mime_type = eina_array_data_get(tmp, 0);
|
||||||
|
eina_array_free(tmp);
|
||||||
content = eina_content_new(data, mime_type);
|
content = eina_content_new(data, mime_type);
|
||||||
_register_selection_changed(obj);
|
_register_selection_changed(obj);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue