Skip to content

Commit

Permalink
Initialize maskOwner to nullptr in Layer class.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fjie committed Nov 22, 2024
1 parent dfcb85d commit f46454b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/tgfx/layers/Layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ class Layer {
protected:
std::weak_ptr<Layer> weakThis;

Layer* maskOwner;
Layer* maskOwner = nullptr;

Layer();

Expand Down

0 comments on commit f46454b

Please sign in to comment.