iOS: Delete members in platform integration

Change-Id: Ibb1bf2bf4a1ced897172facbc9027402adfe6f08
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
bb10
Tor Arne Vestbø 2013-10-03 16:33:56 +02:00 committed by The Qt Project
parent f331f0ee28
commit 2844be2434
2 changed files with 13 additions and 0 deletions

View File

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

View File

@ -81,6 +81,18 @@ QIOSIntegration::QIOSIntegration()
QWindowSystemInterface::registerTouchDevice(m_touchDevice);
}
QIOSIntegration::~QIOSIntegration()
{
delete m_fontDatabase;
m_fontDatabase = 0;
delete m_inputContext;
m_inputContext = 0;
delete m_screen;
m_screen = 0;
}
bool QIOSIntegration::hasCapability(Capability cap) const
{
switch (cap) {