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:
parent
8384a5bbb7
commit
efba977235
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue