Fix YogaLogger leakage when removing it from YogaConfig
Summary: - Reviewed By: emilsjolander Differential Revision: D5802035 fbshipit-source-id: 79c1f8c3cc5ddf3abd51206f23e076f2410cfc0c
This commit is contained in:
committed by
Facebook Github Bot
parent
c20f2864ab
commit
16052085d0
@@ -422,9 +422,7 @@ void jni_YGConfigSetLogger(alias_ref<jobject>, jlong nativePointer, alias_ref<jo
|
||||
|
||||
auto context = YGConfigGetContext(config);
|
||||
if (context) {
|
||||
auto jlogger = reinterpret_cast<global_ref<jobject> *>(context);
|
||||
jlogger->releaseAlias();
|
||||
delete jlogger;
|
||||
delete reinterpret_cast<global_ref<jobject> *>(context);
|
||||
}
|
||||
|
||||
if (logger) {
|
||||
|
Reference in New Issue
Block a user