# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1565131943 0 # Node ID a806773066f6df789ac9131c394ed687f02ee4e8 # Parent 69d0b37082d09fc3bc7a927d1deabcb65fd05ce7 Mac: Removed an unnecessary retain in the macros that was causing a NSPointerArray to leak on any multithread wrapped functions. diff -r 69d0b37082d0 -r a806773066f6 mac/dw.m --- a/mac/dw.m Tue Aug 06 21:44:58 2019 +0000 +++ b/mac/dw.m Tue Aug 06 22:52:23 2019 +0000 @@ -151,7 +151,6 @@ rettype API func(__VA_ARGS__) { \ DW_LOCAL_POOL_IN; \ NSPointerArray *_args = [[NSPointerArray alloc] initWithOptions:NSPointerFunctionsOpaqueMemory]; \ - [_args retain]; \ [_args addPointer:(void *)_##func]; #define DW_FUNCTION_ADD_PARAM1(param1) [_args addPointer:(void *)¶m1]; #define DW_FUNCTION_ADD_PARAM2(param1, param2) [_args addPointer:(void *)¶m1]; \