Fixed a memleak in raytracer

This commit is contained in:
Maciej Suminski 2017-06-27 10:58:43 +02:00
parent 37f8c83c5b
commit 1e87ae6c50
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ public:
{
for( LIST_LIGHT::iterator ii = m_lights.begin();
ii != m_lights.end();
--ii )
++ii )
{
delete *ii;
*ii = NULL;