From eb2241f8a921a09db13bc453ce97b1f1939add17 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sat, 10 May 2014 03:41:45 +0100 Subject: [PATCH] glx: do not leak dri3Display v2: Do not wrap the code in ifdef HAVE_DRI3 (suggested by Keith) Cc: "10.1 10.2" Cc: Keith Packard Signed-off-by: Emil Velikov --- src/glx/glxext.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/glx/glxext.c b/src/glx/glxext.c index 24c80d4f31d..8528e88f24b 100644 --- a/src/glx/glxext.c +++ b/src/glx/glxext.c @@ -249,6 +249,10 @@ glx_display_free(struct glx_display *priv) if (priv->dri2Display) (*priv->dri2Display->destroyDisplay) (priv->dri2Display); priv->dri2Display = NULL; + + if (priv->dri3Display) + (*priv->dri3Display->destroyDisplay) (priv->dri3Display); + priv->dri3Display = NULL; #endif free((char *) priv); -- 2.30.2