From 40897ba65ef22d2b0d044c64d289b3b65c9c588a Mon Sep 17 00:00:00 2001 From: Fjie Date: Fri, 22 Nov 2024 16:24:39 +0800 Subject: [PATCH] Initialize maskOwner to nullptr in Layer class. (#337) --- include/tgfx/layers/Layer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tgfx/layers/Layer.h b/include/tgfx/layers/Layer.h index 082e23ee..801ddafc 100644 --- a/include/tgfx/layers/Layer.h +++ b/include/tgfx/layers/Layer.h @@ -449,7 +449,7 @@ class Layer { protected: std::weak_ptr weakThis; - Layer* maskOwner; + Layer* maskOwner = nullptr; Layer();