The same default material pointer was assigned to all the materials in the scene, so poor destructor tried to free the same pointer multiple times.
The same default material pointer was assigned to all the materials in the scene, so poor destructor tried to free the same pointer multiple times.