From 4ca1ba63e6d3c857f9f4f034577af4aa85d60b2f Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Fri, 28 Feb 2020 18:35:28 +0800 Subject: [PATCH] iOS:fix DoricPromise and DoricContext cycle reference causememory leak --- doric-iOS/Pod/Classes/Plugin/DoricPromise.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doric-iOS/Pod/Classes/Plugin/DoricPromise.m b/doric-iOS/Pod/Classes/Plugin/DoricPromise.m index 5c3c580e..3b042f34 100644 --- a/doric-iOS/Pod/Classes/Plugin/DoricPromise.m +++ b/doric-iOS/Pod/Classes/Plugin/DoricPromise.m @@ -24,7 +24,7 @@ #import "DoricConstant.h" @interface DoricPromise () -@property(nonatomic, strong) DoricContext *context; +@property(nonatomic, weak) DoricContext *context; @property(nonatomic, strong) NSString *callbackId; @end