qt/game_list: Give GameListSearchField::KeyReleaseEater a parent

This fixes a memory leak as KeyReleaseEater's destructor was never
called.

Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc>
This commit is contained in:
FearlessTobi 2020-10-04 05:14:49 +02:00
parent aced133a3d
commit e12ee55faa
2 changed files with 4 additions and 3 deletions

View file

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