Don't leak xcb events
authorLars Knoll <lars.knoll@nokia.com>
Wed, 25 May 2011 19:50:18 +0000 (21:50 +0200)
committerLars Knoll <lars.knoll@nokia.com>
Mon, 30 May 2011 12:44:12 +0000 (14:44 +0200)
Correctly free the xcb events delivered to
the xcb plugin.

src/plugins/platforms/xcb/qxcbconnection.cpp

index 7c05d4d..22cbe10 100644 (file)
@@ -471,6 +471,8 @@ void QXcbConnection::processXcbEvents()
             printXcbEvent("Handled XCB event", event);
         else
             printXcbEvent("Unhandled XCB event", event);
+
+        free(event);
     }
 
     xcb_flush(xcb_connection());