From 23e6afbec0e6b95a2fd39447bfd96fe89c6ff764 Mon Sep 17 00:00:00 2001 From: zouquan741 Date: Fri, 16 Jul 2021 04:36:02 +0800 Subject: [PATCH] Fix leak in CFRef's move assignment operator. (flutter/engine#27441) --- engine/src/flutter/fml/platform/darwin/cf_utils.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/engine/src/flutter/fml/platform/darwin/cf_utils.h b/engine/src/flutter/fml/platform/darwin/cf_utils.h index 00ed82d1f44..0dc984ee89b 100644 --- a/engine/src/flutter/fml/platform/darwin/cf_utils.h +++ b/engine/src/flutter/fml/platform/darwin/cf_utils.h @@ -41,9 +41,6 @@ class CFRef { } void Reset(T instance = nullptr) { - if (instance_ == instance) { - return; - } if (instance_ != nullptr) { CFRelease(instance_); }