fix(addressbook): use pool to lower memory usage

This commit is contained in:
Francis Lachapelle
2021-10-01 11:11:34 -04:00
parent 4e6a7f5705
commit a073241e0f
3 changed files with 23 additions and 3 deletions
+1 -1
View File
@@ -691,7 +691,7 @@
else
[self appendMissingObjectRef: url
toBuffer: buffer];
if (count % 10 == 0)
if (count > 0 && count % 10 == 0)
{
RELEASE(pool);
pool = [[NSAutoreleasePool alloc] init];