From 1a69a31aadbf36305411b8b5ce3740306bc85713 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 29 Jul 2011 14:31:47 +0000 Subject: [PATCH] Monotone-Parent: 2d5e6477bc1967b51bbbe812372dc78cb0f8f69f Monotone-Revision: c40c5c6ccb865a2765307f1e9a53f079e5486bb4 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-07-29T14:31:47 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 5 +++++ OpenChange/MAPIStoreTable.m | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index ccb02d2ce..61eb463b5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-07-29 Wolfgang Sourdeau + + * OpenChange/MAPIStoreTable.m (-dealloc): free the list of + columns, otherwise the last list set is leaked. + 2011-07-28 Wolfgang Sourdeau * OpenChange/MAPIStoreSOGo.m (sogo_folder_get_deleted_fmids): diff --git a/OpenChange/MAPIStoreTable.m b/OpenChange/MAPIStoreTable.m index 870113103..861279473 100644 --- a/OpenChange/MAPIStoreTable.m +++ b/OpenChange/MAPIStoreTable.m @@ -289,6 +289,9 @@ static Class NSDataK, NSStringK; restriction = nil; restrictionState = MAPIRestrictionStateAlwaysTrue; sortOrderings = nil; + + columns = NULL; + columnsCount = 0; } return self; @@ -320,6 +323,8 @@ static Class NSDataK, NSStringK; - (void) dealloc { [self logWithFormat: @"-dealloc"]; + if (columns) + NSZoneFree (NULL, columns); if (container) [[MAPIStoreActiveTables activeTables] unregisterTable: self]; [currentChild release];