forked from enlightenment/efl
ecore-x: Add safety checks for NULL _ecore_x_disp in dnd functions
xlib immediately crashes upon being passed a NULL display object, so every function in ecore-x should likely have safety checks such as these. @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
parent
471c7635ee
commit
5b2580b62e
|
@ -541,6 +541,8 @@ ecore_x_dnd_send_status(Eina_Bool will_accept,
|
|||
{
|
||||
XEvent xev;
|
||||
|
||||
EINA_SAFETY_ON_NULL_RETURN(_ecore_x_disp);
|
||||
|
||||
if (_target->state == ECORE_X_DND_TARGET_IDLE)
|
||||
return;
|
||||
|
||||
|
@ -591,6 +593,8 @@ ecore_x_dnd_send_finished(void)
|
|||
{
|
||||
XEvent xev;
|
||||
|
||||
EINA_SAFETY_ON_NULL_RETURN(_ecore_x_disp);
|
||||
|
||||
if (_target->state == ECORE_X_DND_TARGET_IDLE)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue