Qt: Fixed some memory leakages

Change-Id: Ie8c9b7f8c9203acb5aec00d5553b911e0299f53c
Reviewed-on: https://code.wireshark.org/review/10253
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
This commit is contained in:
Stig Bjørlykke 2015-08-25 15:18:51 +02:00
parent 8384a5bbb7
commit efba977235
1 changed files with 4 additions and 3 deletions

View File

@ -165,11 +165,12 @@ void ExtcapOptionsDialog::updateWidgets()
walker = walker->next;
}
if ( counter > 0 )
if ( counter > 0 ) {
ui->verticalLayout->addLayout(layout);
if ( counter > 0 )
ui->verticalLayout->addSpacerItem(new QSpacerItem(20, 100, QSizePolicy::Minimum, QSizePolicy::Expanding));
} else {
delete layout;
}
}
// Not sure why we have to do this manually.