Moved a misplaced ELM_SAFE_FREE of the selection buffer,
as valgrind still showed lost bytes with selection.
evas_object_event_callback_add
(sel->widget, EVAS_CALLBACK_DEL, _x11_sel_obj_del, sel);
+ ELM_SAFE_FREE(sel->selbuf, free);
if (selbuf)
{
if (format == ELM_SEL_FORMAT_IMAGE)
{
// selbuf is actual image data, not text/string
- ELM_SAFE_FREE(sel->selbuf, free);
sel->selbuf = malloc(buflen + 1);
if (!sel->selbuf)
{
else
sel->selbuf = strdup((char*)selbuf);
}
- else
- sel->selbuf = NULL;
return EINA_TRUE;
}