Cc: "10.1 10.2" <mesa-sta...@lists.freedesktop.org>
Cc: Keith Packard <kei...@keithp.com>
Signed-off-by: Emil Velikov <emil.l.veli...@gmail.com>
---
 src/glx/glxext.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/glx/glxext.c b/src/glx/glxext.c
index 2931790..a7be2d9 100644
--- a/src/glx/glxext.c
+++ b/src/glx/glxext.c
@@ -249,6 +249,12 @@ glx_display_free(struct glx_display *priv)
    if (priv->dri2Display)
       (*priv->dri2Display->destroyDisplay) (priv->dri2Display);
    priv->dri2Display = NULL;
+
+#if defined(HAVE_DRI3)
+   if (priv->dri3Display)
+      (*priv->dri3Display->destroyDisplay) (priv->dri3Display);
+   priv->dri3Display = NULL;
+#endif
 #endif
 
    free((char *) priv);
-- 
1.9.2

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to