summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-09-25 18:06:55 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2014-09-25 18:06:55 -0400
commit8e6967669a64d9bc38428fe59fae171a9ac02919 (patch)
tree579b383b3583af205e4836377b115768a21c46c0 /common
parent40562594083e4e7bbe78a673d2f656dc9baee65a (diff)
downloadqtlocation-mapboxgl-8e6967669a64d9bc38428fe59fae171a9ac02919.tar.gz
make inactive at end of clear_buffers()
Diffstat (limited to 'common')
-rw-r--r--common/headless_view.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/headless_view.cpp b/common/headless_view.cpp
index 9dee14b393..3fc3816f07 100644
--- a/common/headless_view.cpp
+++ b/common/headless_view.cpp
@@ -148,11 +148,13 @@ void HeadlessView::clear_buffers() {
XFreePixmap(x_display, x_pixmap);
x_pixmap = 0;
}
+
+ make_inactive();
#endif
}
HeadlessView::~HeadlessView() {
- make_inactive();
+ clear_buffers();
#if MBGL_USE_CGL
CGLDestroyContext(gl_context);