-rw-r--r-- | libkcal/icalformat.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libkcal/icalformat.cpp b/libkcal/icalformat.cpp index d9fe40b..5877406 100644 --- a/libkcal/icalformat.cpp +++ b/libkcal/icalformat.cpp | |||
@@ -144,6 +144,7 @@ bool ICalFormat::fromString( Calendar *cal, const QString &text ) | |||
144 | } | 144 | } |
145 | 145 | ||
146 | icalcomponent_free( calendar ); | 146 | icalcomponent_free( calendar ); |
147 | icalmemory_free_ring(); | ||
147 | 148 | ||
148 | return success; | 149 | return success; |
149 | } | 150 | } |
@@ -225,9 +226,10 @@ QString ICalFormat::toString( Calendar *cal ) | |||
225 | if (!text) { | 226 | if (!text) { |
226 | setException(new ErrorFormat(ErrorFormat::SaveError, | 227 | setException(new ErrorFormat(ErrorFormat::SaveError, |
227 | i18n("libical error"))); | 228 | i18n("libical error"))); |
229 | icalmemory_free_ring(); | ||
228 | return QString::null; | 230 | return QString::null; |
229 | } | 231 | } |
230 | 232 | icalmemory_free_ring(); | |
231 | return ret; | 233 | return ret; |
232 | } | 234 | } |
233 | 235 | ||