From: Emil Velikov Date: Sat, 10 May 2014 02:41:45 +0000 (+0100) Subject: glx: do not leak dri3Display X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb2241f8a921a09db13bc453ce97b1f1939add17;p=mesa.git 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 --- 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);