1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-09-08 07:16:33 -05:00

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;