Properly deallocate memory on exit

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/15/head
Michele Calgaro 4 months ago
parent 0d4db05e52
commit d99a435c55
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -137,6 +137,7 @@ KStreamRipper::KStreamRipper( TQWidget* parent, const char* name )
KStreamRipper::~KStreamRipper()
{
delete contextMenu;
}
@ -175,7 +176,6 @@ void KStreamRipper::closeEvent( TQCloseEvent *e )
appConfig->sync();
e->accept();
delete contextMenu;
}

@ -47,20 +47,7 @@ int main( int argc, char *argv[] )
mainWidget->resize( 700, 600 );
return app.exec();
int res = app.exec();
delete mainWidget;
return res;
}

Loading…
Cancel
Save