Module: Mesa
Branch: 10.1
Commit: 1776a562b4a37514dda9333fa2bf0e5a99cb4292
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1776a562b4a37514dda9333fa2bf0e5a99cb4292

Author: Emil Velikov <[email protected]>
Date:   Sat May 10 03:41:45 2014 +0100

glx: do not leak dri3Display

v2: Do not wrap the code in ifdef HAVE_DRI3 (suggested by Keith)

Cc: "10.1 10.2" <[email protected]>
Cc: Keith Packard <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
(cherry picked from commit eb2241f8a921a09db13bc453ce97b1f1939add17)

---

 src/glx/glxext.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/glx/glxext.c b/src/glx/glxext.c
index d3d6dc6..7b77ae5 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);

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to