[Mesa-dev] [PATCH 3/3] glx: do not leak dri3Display
Emil Velikov
emil.l.velikov at gmail.com
Fri May 9 19:41:45 PDT 2014
Cc: "10.1 10.2" <mesa-stable at lists.freedesktop.org>
Cc: Keith Packard <keithp at keithp.com>
Signed-off-by: Emil Velikov <emil.l.velikov at 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
More information about the mesa-dev
mailing list