diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-08-13 13:47:14 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-08-13 13:47:14 +0400 |
commit | 9f4ec50a9a54aaa384552816b06d669938604d0f (patch) | |
tree | f27db5fd886d73c2411b89ee1a083e800f8d322e /source/blender | |
parent | f662c0de0521d01ff546d46d5e9fb8a0f64c1c95 (diff) |
Fix #23244: image save function did not release lock on render
result, causing freeze later.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/makesrna/intern/rna_image_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_image_api.c b/source/blender/makesrna/intern/rna_image_api.c index efe3d39d6cd..70438ae3d8c 100644 --- a/source/blender/makesrna/intern/rna_image_api.c +++ b/source/blender/makesrna/intern/rna_image_api.c @@ -77,6 +77,8 @@ static void rna_Image_save_render(Image *image, bContext *C, ReportList *reports if (!BKE_write_ibuf(NULL, ibuf, path, scene->r.imtype, scene->r.subimtype, scene->r.quality)) { BKE_reportf(reports, RPT_ERROR, "Couldn't write image: %s", path); } + + BKE_image_release_ibuf(image, lock); } else { BKE_reportf(reports, RPT_ERROR, "Scene not in context, couldn't get save parameters"); } |