summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2016-12-10 21:07:16 -0500
committerGravatar linkmauve2016-12-11 11:45:50 +0000
commitfd3d56740ecd76450a5ed883bec66fe9ecb23334 (patch)
tree25bceba61f187ed2f358f3261dad41b5f254e8e7 /src
parentMerge pull request #2300 from lioncash/qt (diff)
downloadyuzu-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.cpp2
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
16GameList::GameList(QWidget* parent) { 16GameList::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;