Fix double free error in OpenEXR when file cannot be saved

This commit is contained in:
Sv. Lockal
2013-05-01 19:07:32 +00:00
parent 30556d4cd5
commit 9fe63e82c3

View File

@@ -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);
}