qt/game_list: Give GameListSearchField::KeyReleaseEater a parent

This fixes a memory leak as KeyReleaseEater's destructor was never
called.
This commit is contained in:
ReinUsesLisp
2020-09-29 16:22:50 -03:00
parent 09609dd50e
commit ae6df703f5
2 changed files with 4 additions and 3 deletions

View File

@ -330,7 +330,7 @@ public:
private:
class KeyReleaseEater : public QObject {
public:
explicit KeyReleaseEater(GameList* gamelist);
explicit KeyReleaseEater(GameList* gamelist, QObject* parent = nullptr);
private:
GameList* gamelist = nullptr;