xwayland: Don't leak memory on dnd read failure

This commit is contained in:
Derek Foreman 2016-03-31 13:55:21 -05:00 committed by Mike Blumenkrantz
parent c27e033d66
commit 5c5dc3d9f8
1 changed files with 1 additions and 0 deletions

View File

@ -311,6 +311,7 @@ _xwl_pipe_read(void *data, Ecore_Fd_Handler *fdh)
len = read(ecore_main_fd_handler_fd_get(fdh), (void*)buf, INCR_CHUNK_SIZE);
if (len < 0)
{
free(buf);
_incr_update(p, 0);
eina_hash_del_by_key(pipes, &p->win);
}