未验证 提交 9868e87d 编写于 作者: Z zouquan741 提交者: GitHub

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

上级 39228623
...@@ -41,9 +41,6 @@ class CFRef { ...@@ -41,9 +41,6 @@ class CFRef {
} }
void Reset(T instance = nullptr) { void Reset(T instance = nullptr) {
if (instance_ == instance) {
return;
}
if (instance_ != nullptr) { if (instance_ != nullptr) {
CFRelease(instance_); CFRelease(instance_);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册