/Engine/Source/Runtime/Engine/Classes/Materials/Material.h
Releases rendering resources used by this material. This should only be called directly if the material will not be deleted through the GC system afterward. FlushRenderingCommands() must have been called before this.
void ReleaseResources()