From 0c99e0425263d648d3a20bc1efeeef75dd607ae9 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 30 May 2011 22:07:21 +0000 Subject: [PATCH] Monotone-Parent: 5db151dfdbd8711e6bd1379346b3f6d6886bfbf1 Monotone-Revision: 173c16ed57e319da55ef0f43152bfbba829d1119 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-05-30T22:07:21 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 5 +++++ OpenChange/code-MAPIStorePropertySelectors.m | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 420281a78..f821b20f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-05-30 Wolfgang Sourdeau + * OpenChange/code-MAPIStorePropertySelectors.m + (MAPIStorePropertyGettersForClass): insert the newly created table + in the hash in order to avoid a leak... and to enable it to be + found during the next search. + * SoObjects/SOGo/SOGoContentObject.m (-version, -createDate) (-lastModified): new accessors that return the value of the corresponding ivar. diff --git a/OpenChange/code-MAPIStorePropertySelectors.m b/OpenChange/code-MAPIStorePropertySelectors.m index f44bdbadc..ff7a0eda6 100644 --- a/OpenChange/code-MAPIStorePropertySelectors.m +++ b/OpenChange/code-MAPIStorePropertySelectors.m @@ -23,6 +23,9 @@ #import #import +#undef DEBUG +#include + const MAPIStorePropertyGetter * MAPIStorePropertyGettersForClass (Class klass) { @@ -41,6 +44,7 @@ MAPIStorePropertyGettersForClass (Class klass) if (!getters) { getters = NSZoneCalloc (NULL, 65536, sizeof (MAPIStorePropertyGetter)); + NSMapInsert (classesTable, klass, getters); for (count = 0; count < 65535; count++) { idx = MAPIStorePropertyGettersIdx[count];