Skip to content

Commit

Permalink
Initialize maskOwner to nullptr in Layer class. (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fjie authored Nov 22, 2024
1 parent dfcb85d commit 40897ba
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 40897ba

Please sign in to comment.