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:
Valentin Shergin 2018-09-07 23:38:51 -07:00 committed by Facebook Github Bot
parent 10181f31bd
commit d2186081b3
1 changed files with 1 additions and 1 deletions

View File

@ -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;