handle e_comp deref during e_dnd shutdown to avoid crash

This commit is contained in:
Mike Blumenkrantz 2016-09-15 15:10:42 -04:00
parent ca7bc28286
commit eea3bdfacf
1 changed files with 3 additions and 1 deletions

View File

@ -733,7 +733,9 @@ _e_drag_win_get(const E_Drop_Handler *h, int xdnd)
case E_CLIENT_TYPE:
case E_ZONE_TYPE:
default:
hwin = e_comp->ee_win;
/* protect against crashes during shutdown */
if (e_comp)
hwin = e_comp->ee_win;
break;
}
}