diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2015-09-23 01:28:53 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2015-09-27 03:18:42 +0300 |
commit | 97b1b6775fd16635e3d65c8653ff94ad6417c2c5 (patch) | |
tree | e4a117a174a0983c11eed8d4a81129ed6ac5460e /source/blender | |
parent | 5a16c85a53e076f1231cf9f781969867fe4c7be7 (diff) |
Fix crash reporting render errors during baking.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/render/intern/source/external_engine.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/render/intern/source/external_engine.c b/source/blender/render/intern/source/external_engine.c index fef453efce2..8adac7c7770 100644 --- a/source/blender/render/intern/source/external_engine.c +++ b/source/blender/render/intern/source/external_engine.c @@ -361,10 +361,12 @@ void RE_engine_set_error_message(RenderEngine *engine, const char *msg) Render *re = engine->re; if (re != NULL) { RenderResult *rr = RE_AcquireResultRead(re); - if (rr->error != NULL) { - MEM_freeN(rr->error); + if (rr) { + if (rr->error != NULL) { + MEM_freeN(rr->error); + } + rr->error = BLI_strdup(msg); } - rr->error = BLI_strdup(msg); RE_ReleaseResult(re); } } |