[Lldb-commits] [lldb] r160390 - /lldb/trunk/source/Host/macosx/Host.mm
Greg Clayton
gclayton at apple.com
Tue Jul 17 12:46:13 PDT 2012
Author: gclayton
Date: Tue Jul 17 14:46:12 2012
New Revision: 160390
URL: http://llvm.org/viewvc/llvm-project?rev=160390&view=rev
Log:
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.
Modified:
lldb/trunk/source/Host/macosx/Host.mm
Modified: lldb/trunk/source/Host/macosx/Host.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/Host.mm?rev=160390&r1=160389&r2=160390&view=diff
==============================================================================
--- lldb/trunk/source/Host/macosx/Host.mm (original)
+++ lldb/trunk/source/Host/macosx/Host.mm Tue Jul 17 14:46:12 2012
@@ -114,11 +114,7 @@
{
if (m_pool)
{
- if (objc_collectingEnabled())
- [m_pool drain];
- else
- [m_pool release];
-
+ [m_pool drain];
m_pool = nil;
}
}
More information about the lldb-commits
mailing list