author | zautrix <zautrix> | 2005-07-04 19:17:50 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-04 19:17:50 (UTC) |
commit | 2710cddd5b0b69efc1c5a7f8516d5b451ff258f1 (patch) (side-by-side diff) | |
tree | abcfa306ccfcdf7aba536cc3f476c0bdbe9ef12b /libkcal | |
parent | 4f3238355f67a256f338986ca13322ef23960895 (diff) | |
download | kdepimpi-2710cddd5b0b69efc1c5a7f8516d5b451ff258f1.zip kdepimpi-2710cddd5b0b69efc1c5a7f8516d5b451ff258f1.tar.gz kdepimpi-2710cddd5b0b69efc1c5a7f8516d5b451ff258f1.tar.bz2 |
free ring buffer
-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 @@ -141,12 +141,13 @@ bool ICalFormat::fromString( Calendar *cal, const QString &text ) success = false; } else mLoadedProductId = mImpl->loadedProductId(); } icalcomponent_free( calendar ); + icalmemory_free_ring(); return success; } Incidence *ICalFormat::fromString( const QString &text ) { @@ -222,15 +223,16 @@ QString ICalFormat::toString( Calendar *cal ) } icalcomponent_free( calendar ); if (!text) { setException(new ErrorFormat(ErrorFormat::SaveError, i18n("libical error"))); + icalmemory_free_ring(); return QString::null; } - + icalmemory_free_ring(); return ret; } QString ICalFormat::toICalString( Incidence *incidence ) { CalendarLocal cal( mTimeZoneId ); |