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.
This commit is contained in:
Wladimir J. van der Laan
2016-11-18 15:47:20 +01:00
committed by lateminer
parent f73b73845e
commit 34e36c8384
2 changed files with 3 additions and 3 deletions

View File

@@ -116,11 +116,11 @@ OverviewPage::OverviewPage(const PlatformStyle *platformStyle, QWidget *parent)
currentBalance(-1),
currentUnconfirmedBalance(-1),
currentImmatureBalance(-1),
currentStake(-1),
currentStake(-1),
currentWatchOnlyBalance(-1),
currentWatchUnconfBalance(-1),
currentWatchImmatureBalance(-1),
currentWatchOnlyStake(-1),
currentWatchOnlyStake(-1),
txdelegate(new TxViewDelegate(platformStyle, this))
{
ui->setupUi(this);

View File

@@ -37,7 +37,7 @@
TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *parent) :
QWidget(parent), model(0), transactionProxyModel(0),
transactionView(0), abandonAction(0)
transactionView(0), abandonAction(0), columnResizingFixer(0)
{
// Build filter row
setContentsMargins(0,0,0,0);