Fabric: RCTSurfaceRegistry now stores Surfaces as weak references
Summary: @public RCTSurfaceRegistry always promised this in the documentation but never actually did. Reviewed By: sahrens Differential Revision: D9652732 fbshipit-source-id: f3d06b95192e024273dc0e3a1c2753ca92370338
This commit is contained in:
parent
10181f31bd
commit
d2186081b3
|
@ -20,7 +20,7 @@
|
||||||
{
|
{
|
||||||
if (self = [super init]) {
|
if (self = [super init]) {
|
||||||
_registry = [NSMapTable mapTableWithKeyOptions:NSPointerFunctionsIntegerPersonality | NSPointerFunctionsOpaqueMemory
|
_registry = [NSMapTable mapTableWithKeyOptions:NSPointerFunctionsIntegerPersonality | NSPointerFunctionsOpaqueMemory
|
||||||
valueOptions:NSPointerFunctionsObjectPersonality];
|
valueOptions:NSPointerFunctionsObjectPersonality | NSPointerFunctionsWeakMemory];
|
||||||
}
|
}
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
|
|
Loading…
Reference in New Issue