Fixed a memleak in raytracer
This commit is contained in:
parent
37f8c83c5b
commit
1e87ae6c50
|
@ -168,7 +168,7 @@ public:
|
|||
{
|
||||
for( LIST_LIGHT::iterator ii = m_lights.begin();
|
||||
ii != m_lights.end();
|
||||
--ii )
|
||||
++ii )
|
||||
{
|
||||
delete *ii;
|
||||
*ii = NULL;
|
||||
|
|
Loading…
Reference in New Issue