A way to free textures?

Whenever all references to a texture become nil, I can still see it in mat_texture_list which leads me to believe its not being garbage collected or freed. Is this normal? Is there any way to fix it?

bump. I’m using CreateMaterial btw

IIRC textures are garbage collected by the engine using a simple reference counting system, but I have no idea if this is correctly integrated into Glua or exactly how it behaves.

If I reload all materials, then they become missing textures. So the texture is freed once the material is freed. Is there any way to free a material?