forked from OSchip/llvm-project
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:
parent
f73d7553cc
commit
9c3f4101bc
|
@ -114,11 +114,7 @@ public:
|
||||||
{
|
{
|
||||||
if (m_pool)
|
if (m_pool)
|
||||||
{
|
{
|
||||||
if (objc_collectingEnabled())
|
[m_pool drain];
|
||||||
[m_pool drain];
|
|
||||||
else
|
|
||||||
[m_pool release];
|
|
||||||
|
|
||||||
m_pool = nil;
|
m_pool = nil;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue