From: Friedemann Kleint Date: Fri, 25 May 2012 10:59:47 +0000 (+0200) Subject: XCB/EGL: Free display. X-Git-Tag: 071012110112~799 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2848395b50346b87e28e5bb0523ae1a0aff1d0fc;p=profile%2Fivi%2Fqtbase.git XCB/EGL: Free display. Fix valgrind reporting resource leaks. Change-Id: I4c2038f61b63dc5b6bc0c7eca43f0f339ddf723a Reviewed-by: Girish Ramakrishnan --- diff --git a/src/plugins/platforms/xcb/qxcbconnection.cpp b/src/plugins/platforms/xcb/qxcbconnection.cpp index 728dd1d..3d17e38 100644 --- a/src/plugins/platforms/xcb/qxcbconnection.cpp +++ b/src/plugins/platforms/xcb/qxcbconnection.cpp @@ -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