Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-12-13 16:31:38 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-12-13 16:31:38 +0300
commit2947882bb1dbc457182a9cb653770c5956417840 (patch)
tree31210c4b46b2f0b4032b1b9dc85c8e4f4855842f /intern/cycles/app
parent047d7d3b57c0cd6ac320dbd178fa602592b10f48 (diff)
Cycles: Update standalone app to OIIO 2.0
Diffstat (limited to 'intern/cycles/app')
-rw-r--r--intern/cycles/app/cycles_standalone.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/app/cycles_standalone.cpp b/intern/cycles/app/cycles_standalone.cpp
index 1ec8d18f410..ff2e0156b1a 100644
--- a/intern/cycles/app/cycles_standalone.cpp
+++ b/intern/cycles/app/cycles_standalone.cpp
@@ -32,6 +32,7 @@
#include "util/util_string.h"
#include "util/util_time.h"
#include "util/util_transform.h"
+#include "util/util_unique_ptr.h"
#include "util/util_version.h"
#ifdef WITH_CYCLES_STANDALONE_GUI
@@ -92,7 +93,7 @@ static bool write_render(const uchar *pixels, int w, int h, int channels)
string msg = string_printf("Writing image %s", options.output_path.c_str());
session_print(msg);
- ImageOutput *out = ImageOutput::create(options.output_path);
+ unique_ptr<ImageOutput> out = unique_ptr<ImageOutput>(ImageOutput::create(options.output_path));
if(!out) {
return false;
}
@@ -110,7 +111,6 @@ static bool write_render(const uchar *pixels, int w, int h, int channels)
AutoStride);
out->close();
- delete out;
return true;
}