mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-24 02:42:51 +00:00
karchivemanager: plug memory leak
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ba2d873fe6
commit
b532d6667e
2 changed files with 3 additions and 4 deletions
|
@ -71,7 +71,6 @@ class KArchiveAppPrivate {
|
||||||
KArchiveApp::KArchiveApp()
|
KArchiveApp::KArchiveApp()
|
||||||
: d(new KArchiveAppPrivate()) {
|
: d(new KArchiveAppPrivate()) {
|
||||||
d->ui.setupUi(this);
|
d->ui.setupUi(this);
|
||||||
show();
|
|
||||||
|
|
||||||
d->ui.archiveView->setModel(&d->m_model);
|
d->ui.archiveView->setModel(&d->m_model);
|
||||||
|
|
||||||
|
|
|
@ -46,12 +46,12 @@ int main(int argc, char** argv)
|
||||||
KCmdLineArgs::addCmdLineOptions(option);
|
KCmdLineArgs::addCmdLineOptions(option);
|
||||||
|
|
||||||
KApplication *karchiveapp = new KApplication();
|
KApplication *karchiveapp = new KApplication();
|
||||||
KArchiveApp *karchivewin = new KArchiveApp();
|
KArchiveApp karchivewin;
|
||||||
karchivewin->show();
|
karchivewin.show();
|
||||||
|
|
||||||
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
|
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
|
||||||
for (int pos = 0; pos < args->count(); ++pos) {
|
for (int pos = 0; pos < args->count(); ++pos) {
|
||||||
karchivewin->changePath(args->url(pos).toLocalFile());
|
karchivewin.changePath(args->url(pos).toLocalFile());
|
||||||
}
|
}
|
||||||
|
|
||||||
return karchiveapp->exec();
|
return karchiveapp->exec();
|
||||||
|
|
Loading…
Add table
Reference in a new issue