glXDestroyContext, XFree, XCloseDisplay

This commit is contained in:
John Firebaugh
2014-09-03 13:57:02 -07:00
parent 5cf1afa3d0
commit 01d9d43f01

View File

@@ -151,6 +151,12 @@ HeadlessView::~HeadlessView() {
#if MBGL_USE_CGL
CGLDestroyContext(gl_context);
#endif
#if MBGL_USE_GLX
glXDestroyContext(x_display, gl_context);
XFree(x_info);
XCloseDisplay(x_display);
#endif
}
void HeadlessView::notify_map_change(mbgl::MapChange /*change*/, mbgl::timestamp /*delay*/) {