message: use scoped lifetime of wrappers to release everything before ospShutdown()
diff: @@ -93,6 +93,8 @@ int main(int argc, const char **argv) {
  if (init_error != OSP_NO_ERROR)
  return init_error;
  + // use scoped lifetimes of wrappers to release everything before ospShutdown()
  + {
  // create and setup camera
  ospray::cpp::Camera camera("perspective");
  camera.set("aspect", imgSize.x/(float)imgSize.y);
  @@ -175,6 +177,7 @@ int main(int argc, const char **argv) {
  fb = (uint32_t*)framebuffer.map(OSP_FB_COLOR);
  writePPM("accumulatedFrameCpp.ppm", imgSize, fb);
  framebuffer.unmap(fb);
  + }
  ospShutdown();
  