SceneRefract: Fix potential memory leak

The memory leak occurs when using the scene for multiple benchmarks.
2 files changed