Skip to content

JBIG2Stream: Don't allocate codeTables on the heap

The codeTables objects are of type std::vector, and therefore consist of little more than a size and a data pointer. Allocating them on the stack (i.e., as values) avoids one indirection, avoids potential memory leaks, and makes the code easier to read.

Merge request reports