From 4f3238355f67a256f338986ca13322ef23960895 Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 04 Jul 2005 19:16:55 +0000 Subject: free ring buffer --- diff --git a/libical/src/libical/icalmemory.c b/libical/src/libical/icalmemory.c index 058ef37..18d7ef9 100644 --- a/libical/src/libical/icalmemory.c +++ b/libical/src/libical/icalmemory.c @@ -69,8 +69,8 @@ #include #endif -#define BUFFER_RING_SIZE 2500 -#define MIN_BUFFER_SIZE 200 +#define BUFFER_RING_SIZE 50 +#define MIN_BUFFER_SIZE 64 /* HACK. Not threadsafe */ @@ -213,8 +213,9 @@ void icalmemory_free_ring() { buffer_ring *br; br = get_buffer_ring(); - icalmemory_free_ring_byval(br); + if ( global_buffer_ring == br ) + global_buffer_ring = 0; } -- cgit v0.9.0.2