Properly deallocate memory on exit

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/15/head
Michele Calgaro 12 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() KStreamRipper::~KStreamRipper()
{ {
delete contextMenu;
} }
@ -175,7 +176,6 @@ void KStreamRipper::closeEvent( TQCloseEvent *e )
appConfig->sync(); appConfig->sync();
e->accept(); e->accept();
delete contextMenu;
} }

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

Loading…
Cancel
Save