summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2014-05-10 03:41:45 +0100
committerEmil Velikov <[email protected]>2014-05-25 23:21:46 +0100
commiteb2241f8a921a09db13bc453ce97b1f1939add17 (patch)
tree72cbaf35367072f0c2ba9655cb7bb6a84e8fc1c7 /src
parentb52a530ce2aada1967bc8fefa83ab53e6a737dae (diff)
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]>
Diffstat (limited to 'src')
-rw-r--r--src/glx/glxext.c4
1 files changed, 4 insertions, 0 deletions
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);