summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-03-26 10:46:20 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-04-03 14:39:57 +0200
commit00a93423a6965574e78b6fcc7223e0409c1ecf82 (patch)
tree0682fa7e4a355b5c73fc172872615bf44c982527 /src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
parentd7d948c23d19cc6c6dc8bc6f014843b2421240a0 (diff)
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
Diffstat (limited to '')
-rw-r--r--src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c b/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
index c8e2895358..b876f0da47 100644
--- a/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
+++ b/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
@@ -523,6 +523,7 @@ _ecore_evas_cocoa_selection_request(Ecore_Evas *ee EINA_UNUSED, unsigned int sea
523 //ensure that we always have a \0 at the end, there is no assertion that \0 is included here. 523 //ensure that we always have a \0 at the end, there is no assertion that \0 is included here.
524 slice.len = size + 1; 524 slice.len = size + 1;
525 slice.mem = eina_memdup(data, size, EINA_TRUE); 525 slice.mem = eina_memdup(data, size, EINA_TRUE);
526 free(data);
526 } 527 }
527 else 528 else
528 { 529 {