UMaterialParameterCollectionInstance objects leaking when streaming levels
I noticed that UMaterialParameterCollectionInstance objects created for use in some streamed levels are not destroyed even after the streamed level is unloaded. The specific sequence is:
To fix this, I was thinking of making the following changes:
Would that be the best way to fix this issue? Or is there another way?
(The leak by itself isn't critical as the objects don't take up too much memory, but the objects are spamming a "leak report" I'm working on, so it would be nice to clean those up properly)
Follow this question
Once you sign in you will be able to subscribe for any updates here