[GRASS-SVN] r52341 - grass/branches/releasebranch_6_4/lib/nviz

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jul 8 01:21:42 PDT 2012


Author: mmetz
Date: 2012-07-08 01:21:41 -0700 (Sun, 08 Jul 2012)
New Revision: 52341

Modified:
   grass/branches/releasebranch_6_4/lib/nviz/render.c
Log:
nviz lib: XOpenDisplay must be followed by XCloseDisplay

Modified: grass/branches/releasebranch_6_4/lib/nviz/render.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/nviz/render.c	2012-07-07 21:53:06 UTC (rev 52340)
+++ grass/branches/releasebranch_6_4/lib/nviz/render.c	2012-07-08 08:21:41 UTC (rev 52341)
@@ -62,9 +62,10 @@
 void Nviz_destroy_render_window(struct render_window *rwin)
 {
 #if defined(OPENGL_X11)
-    glXDestroyContext(rwin->displayId, rwin->contextId);
     glXDestroyGLXPixmap(rwin->displayId, rwin->windowId);
     XFreePixmap(rwin->displayId, rwin->pixmap);
+    glXDestroyContext(rwin->displayId, rwin->contextId);
+    XCloseDisplay(rwin->displayId);
 #elif defined(OPENGL_AQUA)
     aglDestroyPixelFormat(rwin->pixelFmtId);
     aglDestroyContext(rwin->contextId);



More information about the grass-commit mailing list