From b68922d51f52ca6ab9daa0105ef5c57f35bfbdcf Mon Sep 17 00:00:00 2001 From: marha Date: Mon, 23 Apr 2012 14:49:28 +0200 Subject: fontconfig libXau libXext libxcb pixman mesa git update 23 April 2012 --- libXext/src/Xge.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'libXext/src/Xge.c') 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; } /* -- cgit v1.2.3