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:
authorSv. Lockal <lockalsash@gmail.com>2013-05-01 23:07:32 +0400
committerSv. Lockal <lockalsash@gmail.com>2013-05-01 23:07:32 +0400
commit9fe63e82c38b9f4ea28929ab7bc144f6d4089d31 (patch)
tree684879720dbca30e5afd5d740b19e2a103f7bf96 /source/blender/imbuf/intern/openexr/openexr_api.cpp
parent30556d4cd5650d1e06984d3549319a73f170b566 (diff)
Fix double free error in OpenEXR when file cannot be saved
Diffstat (limited to 'source/blender/imbuf/intern/openexr/openexr_api.cpp')
-rw-r--r--source/blender/imbuf/intern/openexr/openexr_api.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp
index 3315ffe4b98..b0932148076 100644
--- a/source/blender/imbuf/intern/openexr/openexr_api.cpp
+++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp
@@ -393,7 +393,6 @@ static int imb_save_openexr_half(struct ImBuf *ibuf, const char *name, int flags
catch (const std::exception &exc)
{
printf("OpenEXR-save: ERROR: %s\n", exc.what());
- if (ibuf) IMB_freeImBuf(ibuf);
return (0);
}
@@ -454,7 +453,6 @@ static int imb_save_openexr_float(struct ImBuf *ibuf, const char *name, int flag
catch (const std::exception &exc)
{
printf("OpenEXR-save: ERROR: %s\n", exc.what());
- if (ibuf) IMB_freeImBuf(ibuf);
return (0);
}