diff --git a/src/wayland/tools/generator.cpp b/src/wayland/tools/generator.cpp index 805d93be85..bc748d92d1 100644 --- a/src/wayland/tools/generator.cpp +++ b/src/wayland/tools/generator.cpp @@ -208,6 +208,7 @@ Interface::Interface() = default; Interface::Interface(const QXmlStreamAttributes &attributes) : m_name(attributes.value(QStringLiteral("name")).toString()) , m_version(attributes.value(QStringLiteral("version")).toUInt()) + , m_factory(Q_NULLPTR) { auto it = s_clientClassNameMapping.constFind(m_name); if (it != s_clientClassNameMapping.constEnd()) {