Skip to content

Commit a5f2dab

Browse files
authored
Merge pull request livecode#6880 from montegoulding/listtonsarraycrash-9.0
[[ Bug ]] Fix over-release crash in ListToNSArray
2 parents ebae87b + eabd4c5 commit a5f2dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libfoundation/src/foundation-cf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ bool MCValueConvertToCFTypeRef(MCValueRef p_value, bool p_use_lists, CFTypeRef&
514514
default:
515515
if (MCValueGetTypeInfo(p_value) == kMCObjcObjectTypeInfo)
516516
{
517-
r_cf_type = MCObjcObjectGetId((MCObjcObjectRef)p_value);
517+
r_cf_type = CFRetain(MCObjcObjectGetId((MCObjcObjectRef)p_value));
518518
return true;
519519
}
520520
break;

0 commit comments

Comments
 (0)