[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:
parent
577d51ee22
commit
d43775b93b
@ -142,7 +142,7 @@ QPlatformBackingStore *QDirectFbIntegration::createPlatformBackingStore(QWindow
|
||||
|
||||
QPlatformFontDatabase *QDirectFbIntegration::fontDatabase() const
|
||||
{
|
||||
return m_fontDb;
|
||||
return m_fontDb.data();
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user