diff options
author | marha <marha@users.sourceforge.net> | 2012-04-23 14:49:28 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-04-23 14:49:28 +0200 |
commit | b68922d51f52ca6ab9daa0105ef5c57f35bfbdcf (patch) | |
tree | 4e1760d8c7a1499cad49248b640dcc7ec21d4647 /libXext/src | |
parent | 0e3699334faf92f508b6c187a261548b656b0dd3 (diff) | |
download | vcxsrv-b68922d51f52ca6ab9daa0105ef5c57f35bfbdcf.tar.gz vcxsrv-b68922d51f52ca6ab9daa0105ef5c57f35bfbdcf.tar.bz2 vcxsrv-b68922d51f52ca6ab9daa0105ef5c57f35bfbdcf.zip |
fontconfig libXau libXext libxcb pixman mesa git update 23 April 2012
Diffstat (limited to 'libXext/src')
-rw-r--r-- | libXext/src/Xge.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libXext/src/Xge.c b/libXext/src/Xge.c index 74e48020a..1f37e596d 100644 --- a/libXext/src/Xge.c +++ b/libXext/src/Xge.c @@ -218,7 +218,15 @@ _xgeDpyClose(Display* dpy, XExtCodes* codes) XFree(xge_data); } - return XextRemoveDisplay(xge_info, dpy); + if(!XextRemoveDisplay(xge_info, dpy)) + return 0; + + if (xge_info->ndisplays == 0) { + XextDestroyExtension(xge_info); + xge_info = NULL; + } + + return 1; } /* |