XCB/EGL: Free display.

Fix valgrind reporting resource leaks.

Change-Id: I4c2038f61b63dc5b6bc0c7eca43f0f339ddf723a
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
This commit is contained in:
Friedemann Kleint 2012-05-25 12:59:47 +02:00 committed by Qt by Nokia
parent 9015e479db
commit 2848395b50

View File

@ -213,6 +213,11 @@ QXcbConnection::~QXcbConnection()
#endif
delete m_reader;
#ifdef XCB_USE_EGL
if (m_has_egl)
eglTerminate(m_egl_display);
#endif //XCB_USE_EGL
#ifdef XCB_USE_XLIB
XCloseDisplay((Display *)m_xlib_display);
#else