Fix leak in CFRef's move assignment operator. (flutter/engine#27441)
This commit is contained in:
@@ -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_);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user