-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 @@ -145,4 +145,5 @@ bool ICalFormat::fromString( Calendar *cal, const QString &text ) icalcomponent_free( calendar ); + icalmemory_free_ring(); return success; @@ -226,7 +227,8 @@ QString ICalFormat::toString( Calendar *cal ) setException(new ErrorFormat(ErrorFormat::SaveError, i18n("libical error"))); + icalmemory_free_ring(); return QString::null; } - + icalmemory_free_ring(); return ret; } |