index 5bf3c2762eb7c93884f9cbefb326ab3085d0fe7d..39c82daf6ed9ba5808f70514afd1b85b4c6efacc 100644 (file)
return;
}
+ bool free_from_on_exit = false;
if (from->mode != to->mode){
NRPixBlock *o_from = from;
from = new NRPixBlock;
nr_pixblock_setup_fast(from, to->mode, o_from->area.x0, o_from->area.y0, o_from->area.x1, o_from->area.y1, false);
nr_blit_pixblock_pixblock(from, o_from);
+ free_from_on_exit = true;
}
// Precalculate sizes of source and destination pixblocks
}
}
}
+ if (free_from_on_exit) {
+ nr_pixblock_release(from);
+ delete from;
+ }
+
}
void scale_bicubic_alpha(NRPixBlock *to, NRPixBlock *from)