elm_cnp: free array when going out of scope

this was missing and indeed a memory leak.
This commit is contained in:
Marcel Hollerbach 2020-03-09 16:45:36 +01:00
parent bcbe56ecdd
commit a491e95dea
1 changed files with 1 additions and 0 deletions

View File

@ -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");
}
mime_type = eina_array_data_get(tmp, 0);
eina_array_free(tmp);
content = eina_content_new(data, mime_type);
_register_selection_changed(obj);