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:
parent
9015e479db
commit
2848395b50
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user