From 43c29755a6bbeea7f26b5fca66b6f57deaa76763 Mon Sep 17 00:00:00 2001 From: helge Date: Tue, 20 Jul 2004 11:13:15 +0000 Subject: [PATCH] git-svn-id: http://svn.opengroupware.org/SOGo/trunk@150 d1b88da0-ebda-0310-925b-ed51d893ca5b --- OGoContentStore/ChangeLog | 5 +++++ OGoContentStore/OCSChannelManager.m | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/OGoContentStore/ChangeLog b/OGoContentStore/ChangeLog index 447d52a7..df1a23a1 100644 --- a/OGoContentStore/ChangeLog +++ b/OGoContentStore/ChangeLog @@ -1,3 +1,8 @@ +2004-07-20 Helge Hess + + * OCSChannelManager.m: fixed a bug in the channel GC which resulted + in an exception during the GC NSTimer + 2004-07-16 Helge Hess * improved error handling in various files diff --git a/OGoContentStore/OCSChannelManager.m b/OGoContentStore/OCSChannelManager.m index d891bfc6..f678bd02 100644 --- a/OGoContentStore/OCSChannelManager.m +++ b/OGoContentStore/OCSChannelManager.m @@ -394,12 +394,14 @@ static NSTimeInterval ChannelCollectionTimer = 5 * 60; for (i = 0; i < count; i++) { OCSChannelHandle *handle; - handle = [[self->availableChannels objectAtIndex:i] retain]; + handle = [[handlesToRemove objectAtIndex:i] retain]; [self->availableChannels removeObject:handle]; if ([[handle channel] isOpen]) [[handle channel] closeChannel]; [handle release]; } + + [handlesToRemove release]; } /* debugging */ -- 2.39.5