Skip to content
  • Even Rouault's avatar
    JBIG2Stream: fix leak in reset() if called several times · f401ad7a
    Even Rouault authored
    JBIG2Stream::reset() currently allocates new values for the
    segments and globalSegments member variable. This causes a
    memory leak if the method is called several times, which can
    be triggered by the GDAL library that uses Poppler.
    So add a freeSegments() method where we move the related cleanup
    of close(), and call that method from reset() and close().
    f401ad7a