QPA: fix memory leak in qwindowsysteminterface.h

Just removing the event from QList will not delete it...

Change-Id: I3c4bb69a2afaada7ad4d5695eba0b3f29e9463ec
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
This commit is contained in:
Richard Moe Gustavsen 2013-02-22 09:34:42 +01:00 committed by The Qt Project
parent 7ea6ac832e
commit 5c70e53722

View File

@ -411,7 +411,7 @@ public:
const QMutexLocker locker(&mutex);
for (int i = 0; i < impl.size(); ++i) {
if (impl.at(i) == e) {
impl.removeAt(i);
delete impl.takeAt(i);
break;
}
}