Avoid crash on deleted windows.
This commit is contained in:
parent
f6d5c6ce36
commit
46401a2a1c
|
@ -411,7 +411,7 @@ void X11DRV_WND_SetGravity( WND* wnd, int value )
|
||||||
{
|
{
|
||||||
X11DRV_WND_DATA *data = wnd->pDriverData;
|
X11DRV_WND_DATA *data = wnd->pDriverData;
|
||||||
|
|
||||||
if (data->window && data->bit_gravity != value )
|
if (data && data->window && data->bit_gravity != value )
|
||||||
{
|
{
|
||||||
XSetWindowAttributes win_attr;
|
XSetWindowAttributes win_attr;
|
||||||
win_attr.bit_gravity = value;
|
win_attr.bit_gravity = value;
|
||||||
|
|
Loading…
Reference in New Issue