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:
parent
7ea6ac832e
commit
5c70e53722
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user