Fixed potential memory corruption in EVENT_QueryZOrder.
Fixed potential X synchronization problem in X11DRV_WND_SetHostAttr.
This commit is contained in:
parent
e40c9b0a94
commit
2bb2d9b008
|
@ -343,7 +343,7 @@ static Window __get_common_ancestor( Window A, Window B,
|
|||
TSXQueryTree( display, A, &root, &A, children, total );
|
||||
TSXQueryTree( display, B, &root, &B, &childrenB, &totalB );
|
||||
if( childrenB ) TSXFree( childrenB );
|
||||
if( *children ) TSXFree( *children );
|
||||
if( *children ) TSXFree( *children ), *children = NULL;
|
||||
} while( A != B && A && B );
|
||||
|
||||
if( A && B )
|
||||
|
|
|
@ -812,7 +812,7 @@ BOOL X11DRV_WND_SetHostAttr(WND* wnd, INT ha, INT value)
|
|||
else
|
||||
{
|
||||
XEvent xe;
|
||||
XMapWindow(display, w );
|
||||
TSXMapWindow(display, w );
|
||||
while( !TSXCheckTypedWindowEvent( display, w, MapNotify, &xe) );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue