ecore_wl2: dnd: fix leak of event resource when not used

In the else branch the allocated event is never used. Make sure we free the
resource before returning.

CID: 1357753
This commit is contained in:
Stefan Schmidt 2016-07-19 14:52:28 +02:00
parent 1c832a1b12
commit 7d443f30e2
1 changed files with 1 additions and 0 deletions

View File

@ -285,6 +285,7 @@ _selection_data_read(void *data, Ecore_Fd_Handler *fdh)
}
memcpy(((char*)source->read_data) + old_len, buffer, len);
free(event);
return ECORE_CALLBACK_RENEW;
}
}