# Dispose multiMaterial

**URL:** <https://forum.babylonjs.com/t/dispose-multimaterial/1306>\
**Category:** Bugs\
**Created:** [February 11, 2019, 9:11pm UTC](https://forum.babylonjs.com/t/dispose-multimaterial/1306 "2019-02-11T21:11:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarianG](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mariang/32/138_2.png) [@MarianG](https://forum.babylonjs.com/u/MarianG)\
**Post date:** [February 11, 2019, 9:11pm UTC](https://forum.babylonjs.com/t/dispose-multimaterial/1306/1 "2019-02-11T21:11:31Z")

</div>

Hi  
I just noticed that mesh.dispose(), with or without params do not dispose material too if typeof material is multimaterial.  
[https://playground.babylonjs.com/#G6KMYR](https://playground.babylonjs.com/#G6KMYR)  
I don’t know if this is expected (in this case I have to go trough all submaterials of material to dispose) or is a bug.

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [February 11, 2019, 9:50pm UTC](https://forum.babylonjs.com/t/dispose-multimaterial/1306/2 "2019-02-11T21:50:07Z")

</div>

Definitely a bug  
I will fix that
