Is there a bug in the model destroy?

When entity’s destroy method is called,
Models owned by entity model components are not destroy。

That seems to be correct behaviour. An entity being destroy shouldn’t destroy the model asset as other entities could be referencing it.

As I saw yesterday, the model has a reference count. If destroy is not called, the device resources occupied by the model will never be released.

I also found that the mesh in the model has a reference count.

Shader in material has a reference count.

But texture has no reference count