diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-11-18 15:47:20 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-11-23 12:33:35 +0100 |
| commit | 47db07537746940ee7dd0739a8c73e328837813f (patch) | |
| tree | 41078e611f150defe1fd793b1709d0019271e69b /src/qt/guiutil.cpp | |
| parent | Merge #9075: Decouple peer-processing-logic from block-connection-logic (#3) (diff) | |
| download | discoin-47db07537746940ee7dd0739a8c73e328837813f.tar.xz discoin-47db07537746940ee7dd0739a8c73e328837813f.zip | |
qt: Plug many memory leaks
None of these are very serious, and are leaks in objects that are
created at most one time.
In most cases this means properly using the QObject parent hierarchy,
except for BanTablePriv/PeerTablePriv which are not QObject,
so use a std::unique_ptr instead.
Diffstat (limited to 'src/qt/guiutil.cpp')
| -rw-r--r-- | src/qt/guiutil.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 9dc75c2e1..130cfc6e7 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -585,7 +585,8 @@ void TableViewLastColumnResizingFixer::on_geometriesChanged() * Initializes all internal variables and prepares the * the resize modes of the last 2 columns of the table and */ -TableViewLastColumnResizingFixer::TableViewLastColumnResizingFixer(QTableView* table, int lastColMinimumWidth, int allColsMinimumWidth) : +TableViewLastColumnResizingFixer::TableViewLastColumnResizingFixer(QTableView* table, int lastColMinimumWidth, int allColsMinimumWidth, QObject *parent) : + QObject(parent), tableView(table), lastColumnMinimumWidth(lastColMinimumWidth), allColumnsMinimumWidth(allColsMinimumWidth) |