forked from enlightenment/efl
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:
parent
1c832a1b12
commit
7d443f30e2
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue