Skip to content

Commit

Permalink
Map Renderer|Client: Free the temporary Lumobj produced by LightDecor…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
danij-deng committed Sep 12, 2013
1 parent 5c60ef4 commit e6609c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doomsday/client/src/world/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1167,9 +1167,10 @@ DENG2_OBSERVES(bsp::Partitioner, UnclosedSectorFound)
{
if(LightDecoration *decorLight = decor->maybeAs<LightDecoration>())
{
if(Lumobj *lum = decorLight->generateLumobj())
QScopedPointer<Lumobj>lum(decorLight->generateLumobj());
if(!lum.isNull())
{
self.addLumobj(*lum);
self.addLumobj(*lum); // a copy is made.
}
}
}
Expand Down

0 comments on commit e6609c0

Please sign in to comment.