Call "drain" on the auto release pool as it will do the right thing for both GC and non-GC apps. It will also quiet the static analyzer.

llvm-svn: 160390
This commit is contained in:
Greg Clayton 2012-07-17 19:46:12 +00:00
parent f73d7553cc
commit 9c3f4101bc
1 changed files with 1 additions and 5 deletions

View File

@ -114,11 +114,7 @@ public:
{
if (m_pool)
{
if (objc_collectingEnabled())
[m_pool drain];
else
[m_pool release];
[m_pool drain];
m_pool = nil;
}
}