diff options
author | Panagiotis Papadakos <[email protected]> | 2007-02-05 08:17:50 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-02-05 08:17:50 -0700 |
commit | eab92fcdc23a8a9d333227e4c98e6a33a9cc1183 (patch) | |
tree | dce99983f0be4ff9de36039ad8a25675088f0bfe /src/glx/x11/glxext.c | |
parent | 47bd759fc9a8f886b90af9a5d53cbb896f37358e (diff) |
fix mem leaks
Diffstat (limited to 'src/glx/x11/glxext.c')
-rw-r--r-- | src/glx/x11/glxext.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index d24f853d546..a039bca234d 100644 --- a/src/glx/x11/glxext.c +++ b/src/glx/x11/glxext.c @@ -396,6 +396,10 @@ static int __glXFreeDisplayPrivate(XExtData *extension) (*priv->driDisplay.destroyDisplay)(priv->dpy, priv->driDisplay.private); priv->driDisplay.private = NULL; + if (priv->driDisplay.createNewScreen) { + Xfree(priv->driDisplay.createNewScreen); /* free array of ptrs */ + priv->driDisplay.createNewScreen = NULL; + } #endif Xfree((char*) priv); |