summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-04-03 17:20:34 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-04-06 09:05:05 +0200
commit13d52be7e6a2a7f761996bb850b10127378b190f (patch)
treec3194da3a8e5ffd85915987dbc995036e79cebd7 /src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
parent5565e904795ce32ba734a3022f01753acb1dd738 (diff)
ecore_evas: fix leaks in macos and win32
memory is duplicated in eina_content_new. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D11641
Diffstat (limited to '')
-rw-r--r--src/modules/ecore_evas/engines/win32/ecore_evas_win32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c b/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
index 41a0fad65e..638d4e74f7 100644
--- a/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
+++ b/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
@@ -1307,6 +1307,7 @@ _ecore_evas_win32_selection_request(Ecore_Evas *ee EINA_UNUSED, unsigned int sea
1307 slice.mem = data; 1307 slice.mem = data;
1308 } 1308 }
1309 content = eina_content_new(eina_rw_slice_slice_get(slice), mime_type); 1309 content = eina_content_new(eina_rw_slice_slice_get(slice), mime_type);
1310 free(slice.mem); //memory got duplicated in eina_content_new
1310 if (!content) // construction can fail because of some validation reasons 1311 if (!content) // construction can fail because of some validation reasons
1311 eina_promise_reject(promise, ecore_evas_no_matching_type); 1312 eina_promise_reject(promise, ecore_evas_no_matching_type);
1312 else 1313 else