[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_2_BRANCH: kdepim/knotes
From: Lukáš Tinkl <lukas () kde ! org>
Date: 2004-02-01 10:03:04
Message-ID: 20040201100304.DB072993A () office ! kde ! org
[Download RAW message or body]
CVS commit by lukas:
backport mem leak fix
M +3 -1 knotesapp.cpp 1.65.4.1
--- kdepim/knotes/knotesapp.cpp #1.65:1.65.4.1
@@ -481,4 +481,6 @@ void KNotesApp::saveConfig()
void KNotesApp::saveNotes()
{
+ ICalFormat format;
+
QString file = KGlobal::dirs()->saveLocation( "appdata" ) + "notes.ics";
QString backup = file + "~";
@@ -490,5 +492,5 @@ void KNotesApp::saveNotes()
KMessageBox::error(0, i18n("<qt>Unable to save the notes backup to \
<b>%1</b>! Check that there is sufficient disk space.</qt>")
.arg( backup ) );
- else if ( !m_calendar.save( file, new ICalFormat() ) )
+ else if ( !m_calendar.save( file, &format ) )
KMessageBox::error(0, i18n("<qt>Unable to save the notes to <b>%1</b>! Check \
that there is sufficient disk space.<br>"
"There should be a backup in <b>%2</b> \
though.</qt>")
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic