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:
Mike Blumenkrantz 2020-03-26 10:46:20 -04:00 committed by Marcel Hollerbach
parent d7d948c23d
commit 00a93423a6
1 changed files with 1 additions and 0 deletions

View File

@ -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
{