Commit 8fecd5c5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Backport: fix mem leak

svn path=/branches/KDE/4.6/kdeedu/kstars/; revision=1215680
parent 963be66f
......@@ -1050,6 +1050,7 @@ void SkyMap::addLink() {
if ( !file.open( QIODevice::ReadWrite | QIODevice::Append ) ) {
QString message = i18n( "Custom image-links file could not be opened.\nLink cannot be recorded for future sessions." );
KMessageBox::sorry( 0, message, i18n( "Could Not Open File" ) );
delete adialog;
return;
} else {
entry = clickedObject()->name() + ':' + adialog->desc() + ':' + adialog->url();
......@@ -1067,6 +1068,7 @@ void SkyMap::addLink() {
if ( !file.open( QIODevice::ReadWrite | QIODevice::Append ) ) {
QString message = i18n( "Custom information-links file could not be opened.\nLink cannot be recorded for future sessions." ); KMessageBox::sorry( 0, message, i18n( "Could not Open File" ) );
delete adialog;
return;
} else {
entry = clickedObject()->name() + ':' + adialog->desc() + ':' + adialog->url();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment