forked from enlightenment/efl
ecore-evas/cocoa: fix cnp leak
this pointer needs to be freed if it's being copied Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11604
This commit is contained in:
parent
d7d948c23d
commit
00a93423a6
|
@ -523,6 +523,7 @@ _ecore_evas_cocoa_selection_request(Ecore_Evas *ee EINA_UNUSED, unsigned int sea
|
|||
//ensure that we always have a \0 at the end, there is no assertion that \0 is included here.
|
||||
slice.len = size + 1;
|
||||
slice.mem = eina_memdup(data, size, EINA_TRUE);
|
||||
free(data);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue