[GRASS-SVN] r52303 - grass/trunk/lib/nviz

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 4 07:09:29 PDT 2012


Author: mmetz
Date: 2012-07-04 07:09:28 -0700 (Wed, 04 Jul 2012)
New Revision: 52303

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

Modified: grass/trunk/lib/nviz/render.c
===================================================================
--- grass/trunk/lib/nviz/render.c	2012-07-04 12:12:04 UTC (rev 52302)
+++ grass/trunk/lib/nviz/render.c	2012-07-04 14:09:28 UTC (rev 52303)
@@ -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