iOS: don't delete m_touchDevice, QPA takes ownership

When registering m_touchDevice with QWindowSystemInterface, it
will also transfer ownership to it. It will eventually be
deleted in clenupDevicesList on qtouchdevice.cpp.

This patch will also stop the app from crashing when telling it
to quit.

Change-Id: I97070efdf16b4db7d076935fbec62e60f094a7df
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
This commit is contained in:
Richard Moe Gustavsen 2013-04-19 10:48:37 +02:00 committed by The Qt Project
parent 38f6467b81
commit 8a00a42d0d
2 changed files with 0 additions and 6 deletions

View File

@ -52,7 +52,6 @@ class QIOSIntegration : public QPlatformIntegration, public QPlatformNativeInter
{
public:
QIOSIntegration();
~QIOSIntegration();
bool hasCapability(Capability cap) const;

View File

@ -79,11 +79,6 @@ QIOSIntegration::QIOSIntegration()
QWindowSystemInterface::registerTouchDevice(m_touchDevice);
}
QIOSIntegration::~QIOSIntegration()
{
delete m_touchDevice;
}
bool QIOSIntegration::hasCapability(Capability cap) const
{
switch (cap) {