Skip to content

Commit

Permalink
Fix memory leak introduced in 8445c00.
Browse files Browse the repository at this point in the history
Issue mmp#264.
  • Loading branch information
mmp committed Dec 4, 2019
1 parent 0170681 commit b90949c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/integrators/sppm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,10 @@ void SPPMIntegrator::Render(const Scene &scene) {
WriteImage("sppm_radius.png", rimg.get(), pixelBounds, res);
}
}

// Reset memory arenas
for (int i = 0; i < perThreadArenas.size(); ++i)
perThreadArenas[i].Reset();
}
progress.Done();
}
Expand Down

0 comments on commit b90949c

Please sign in to comment.