summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-03-24 17:55:18 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2011-03-24 17:56:30 (GMT)
commit31ca1ee427cce4dadb98e3091504db707346b0bc (patch)
tree3363f4ddfd10a9726c0c924b34d7f508da098db2 /src/plugins
parent39ede7e7914b486d5971491dd742da3712a1d7e5 (diff)
downloadQt-31ca1ee427cce4dadb98e3091504db707346b0bc.zip
Qt-31ca1ee427cce4dadb98e3091504db707346b0bc.tar.gz
Qt-31ca1ee427cce4dadb98e3091504db707346b0bc.tar.bz2
Prevent crash on exit by deleting QXcbWindow's GL context integration.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/platforms/xcb/qxcbwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbwindow.cpp b/src/plugins/platforms/xcb/qxcbwindow.cpp
index a016ccd..e33a661 100644
--- a/src/plugins/platforms/xcb/qxcbwindow.cpp
+++ b/src/plugins/platforms/xcb/qxcbwindow.cpp
@@ -195,6 +195,7 @@ QXcbWindow::QXcbWindow(QWidget *tlw)
QXcbWindow::~QXcbWindow()
{
+ delete m_context;
xcb_destroy_window(xcb_connection(), m_window);
}