diff options
| author | 2016-12-10 21:07:16 -0500 | |
|---|---|---|
| committer | 2016-12-11 11:45:50 +0000 | |
| commit | fd3d56740ecd76450a5ed883bec66fe9ecb23334 (patch) | |
| tree | 25bceba61f187ed2f358f3261dad41b5f254e8e7 /src | |
| parent | Merge pull request #2300 from lioncash/qt (diff) | |
| download | yuzu-fd3d56740ecd76450a5ed883bec66fe9ecb23334.tar.gz yuzu-fd3d56740ecd76450a5ed883bec66fe9ecb23334.tar.xz yuzu-fd3d56740ecd76450a5ed883bec66fe9ecb23334.zip | |
game_list: Pass the parent constructor argument to the QWidget base class
If the control was ever passed an explicit parent, a potential memory leak
would happen, as the game list wouldn't be freed.
However, in our case, the game list was placed within a layout, which
automatically performs reparenting, avoiding this issue.
Diffstat (limited to 'src')
| -rw-r--r-- | src/citra_qt/game_list.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cpp index 07bc35308..2863e5da6 100644 --- a/src/citra_qt/game_list.cpp +++ b/src/citra_qt/game_list.cpp | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | #include "game_list_p.h" | 13 | #include "game_list_p.h" |
| 14 | #include "ui_settings.h" | 14 | #include "ui_settings.h" |
| 15 | 15 | ||
| 16 | GameList::GameList(QWidget* parent) { | 16 | GameList::GameList(QWidget* parent) : QWidget{parent} { |
| 17 | QVBoxLayout* layout = new QVBoxLayout; | 17 | QVBoxLayout* layout = new QVBoxLayout; |
| 18 | 18 | ||
| 19 | tree_view = new QTreeView; | 19 | tree_view = new QTreeView; |