discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=9940cabd13f5afd9dbf1fd496123f894ad13c57a
commit 9940cabd13f5afd9dbf1fd496123f894ad13c57a Author: Mike Blumenkrantz <[email protected]> Date: Wed Jul 12 12:00:52 2017 -0400 efl-wl: free atom name when sending selection CID 1377542 --- src/lib/efl_wl/x11.x | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/efl_wl/x11.x b/src/lib/efl_wl/x11.x index f5220c1428..49bc0560a9 100644 --- a/src/lib/efl_wl/x11.x +++ b/src/lib/efl_wl/x11.x @@ -99,6 +99,7 @@ x11_send_send(Comp_Data_Device_Source *source, const char* mime_type, int32_t fd Ecore_X_Atom t, sel = ECORE_X_ATOM_SELECTION_CLIPBOARD; Comp_Data_Device_Transfer *dt; Ecore_Window win; + char *name; win = ecore_evas_window_get(ecore_evas_ecore_evas_get(source->seat->c->evas)); if (type == COMP_DATA_DEVICE_OFFER_TYPE_DND) sel = ECORE_X_ATOM_SELECTION_XDND; @@ -112,7 +113,9 @@ x11_send_send(Comp_Data_Device_Source *source, const char* mime_type, int32_t fd dt->type = type; dt->fdh = ecore_main_fd_handler_add(fd, 0, x11_offer_write, dt, NULL, NULL); dt->source = source; - dt->mime_type = eina_stringshare_add(ecore_x_atom_name_get(t)); + name = ecore_x_atom_name_get(t); + dt->mime_type = eina_stringshare_add(name); + free(name); dt->source->transfers = eina_inlist_append(dt->source->transfers, EINA_INLIST_GET(dt)); xconvertselection(ecore_x_display_get(), sel, t, comp_dnd_atom, win, ecore_x_current_time_get()); } --
