Commit 02fc40fa authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

Make sure we don't leak the QPlatformFontDatabase using smart pointers

Found it when running KWin on ASAN
parent e15004ff
......@@ -141,7 +141,7 @@ QPlatformOffscreenSurface *Integration::createPlatformOffscreenSurface(QOffscree
QPlatformFontDatabase *Integration::fontDatabase() const
return m_fontDb;
QPlatformTheme *Integration::createPlatformTheme(const QString &name) const
......@@ -58,7 +58,7 @@ public:
void initScreens();
QPlatformFontDatabase *m_fontDb;
QScopedPointer<QPlatformFontDatabase> m_fontDb;
QPlatformNativeInterface *m_nativeInterface;
Screen *m_dummyScreen = nullptr;
QScopedPointer<QPlatformInputContext> m_inputContext;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment