mitsu_m1: Always free the CPC data after we're done with it.

This commit is contained in:
Solomon Peachy 2020-02-27 20:38:21 -05:00
parent 74e32bd688
commit 7114c1cbc2
1 changed files with 3 additions and 1 deletions

View File

@ -864,6 +864,9 @@ static int mitsud90_main_loop(void *vctx, const void *vjob) {
job->hdr.sharp_h = 0;
}
/* We're done with the CPC data */
free_M1CPCData(cpc);
#if (__BYTE_ORDER == __BIG_ENDIAN)
/* Convert data to LITTLE ENDIAN if needed */
int i;
@ -887,7 +890,6 @@ static int mitsud90_main_loop(void *vctx, const void *vjob) {
ret = cpm1_fillmatte(job);
if (ret) {
mitsud90_cleanup_job(job);
free_M1CPCData(cpc);
return ret;
}
job->hdr.oprate = M1_calc_oprate_matte(output.rows,