Fix leak in CFRef's move assignment operator. (flutter/engine#27441)

This commit is contained in:
zouquan741 2021-07-16 04:36:02 +08:00 committed by GitHub
parent 20bf73d974
commit 23e6afbec0

View File

@ -41,9 +41,6 @@ class CFRef {
}
void Reset(T instance = nullptr) {
if (instance_ == instance) {
return;
}
if (instance_ != nullptr) {
CFRelease(instance_);
}