我正在将响应收集到变量中
-(NSMutableDictionary *)getCombineIdAndNames{
NSMutableDictionary *lObjCombineIdAndNamesArrayPtr = [[NSMutableDictionary alloc] init];
[lObjCombineIdAndNamesArrayPtr setObject:lObjtempNamePtr
forKey:lObjtempIdPtr];
return [lObjCombineIdAndNamesArrayPtr autorelease];
}
这导致内存泄漏
gObjAppDelegatePtr.m_cObjCombineIdNameDictPtr = [gObjAppDelegatePtr.m_cDbHandler getCombineIdAndNames];
gObjAppDelegatePtr.m_cObjCombineIdNameDictPtr
. 这是副本类型的属性。但它仍然会导致内存泄漏。如何解决它。请帮助我。