Make sure we don't leak interfaces

Properly set the parent
This commit is contained in:
Aleix Pol 2021-04-22 17:30:54 +02:00
parent b2d648df5d
commit c9c1c3ae0d
2 changed files with 2 additions and 2 deletions

View file

@ -362,7 +362,7 @@ QList<TextInputV2InterfacePrivate::Resource *> TextInputV2InterfacePrivate::text
}
TextInputV2Interface::TextInputV2Interface(SeatInterface *seat)
: QObject()
: QObject(seat)
, d(new TextInputV2InterfacePrivate(seat, this))
{
}

View file

@ -337,7 +337,7 @@ void TextInputV3InterfacePrivate::defaultPending()
}
TextInputV3Interface::TextInputV3Interface(SeatInterface *seat)
: QObject()
: QObject(seat)
, d(new TextInputV3InterfacePrivate(seat, this))
{
}