From 2710cddd5b0b69efc1c5a7f8516d5b451ff258f1 Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 04 Jul 2005 19:17:50 +0000 Subject: free ring buffer --- diff --git a/libical/src/libical/icalmemory.c b/libical/src/libical/icalmemory.c index 18d7ef9..3ed38ad 100644 --- a/libical/src/libical/icalmemory.c +++ b/libical/src/libical/icalmemory.c @@ -69,7 +69,7 @@ #include #endif -#define BUFFER_RING_SIZE 50 +#define BUFFER_RING_SIZE 100 #define MIN_BUFFER_SIZE 64 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 ) } icalcomponent_free( calendar ); + icalmemory_free_ring(); return success; } @@ -225,9 +226,10 @@ QString ICalFormat::toString( Calendar *cal ) if (!text) { setException(new ErrorFormat(ErrorFormat::SaveError, i18n("libical error"))); + icalmemory_free_ring(); return QString::null; } - + icalmemory_free_ring(); return ret; } -- cgit v0.9.0.2