[directfb] Manage the font database with a QScopedPointer

Attempt to fix a memory leak on exit by deleting the font database.

Change-Id: I07b0865c97bb8ef26950bf231b5239ca01e95c56
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
This commit is contained in:
Holger Hans Peter Freyther 2011-09-29 17:54:28 +02:00 committed by Qt by Nokia
parent 577d51ee22
commit d43775b93b
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ QPlatformBackingStore *QDirectFbIntegration::createPlatformBackingStore(QWindow
QPlatformFontDatabase *QDirectFbIntegration::fontDatabase() const
{
return m_fontDb;
return m_fontDb.data();
}
QT_END_NAMESPACE

View File

@ -94,7 +94,7 @@ private:
QScopedPointer<QDirectFbScreen> m_primaryScreen;
QScopedPointer<QDirectFbInput> m_input;
QScopedPointer<QThread> m_inputRunner;
QPlatformFontDatabase *m_fontDb;
QScopedPointer<QPlatformFontDatabase> m_fontDb;
QAbstractEventDispatcher *m_eventDispatcher;
};