MNG_FREE (pData, pData->pJPEGrow, pData->iJPEGrowlen)
MNG_FREE (pData, pData->pJPEGrow,  pData->iJPEGrowlen) MNG_FREE (pData, pData->pJPEGrow2, pData->iJPEGrowlen2)   pData->bJPEGcompress     = MNG_FALSE;
mng_retcode mngjpeg_cleanup (mng_datap pData){#if defined(MNG_INCLUDE_IJG6B) && defined(MNG_USE_SETJMP)  mng_retcode iRetcode;#endif#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (pData, MNG_FN_JPEG_CLEANUP, MNG_LC_START)#endif#ifdef MNG_INCLUDE_IJG6B#ifdef MNG_USE_SETJMP  iRetcode = setjmp (pData->sErrorbuf);/* setup local JPEG error-recovery */  if (iRetcode != 0)                   /* got here from longjmp ? */    MNG_ERRORJ (pData, iRetcode)       /* then IJG-lib issued an error */#endif    #ifdef MNG_INCLUDE_JNG_READ  if (pData->bJPEGdecompress)          /* still decompressing something ? */    jpeg_destroy_decompress (pData->pJPEGdinfo);#endif#ifdef MNG_INCLUDE_JNG_WRITE  if (pData->bJPEGcompress)            /* still compressing something ? */    jpeg_destroy_compress (pData->pJPEGcinfo);#endif#endif /* MNG_INCLUDE_IJG6B */                                       /* cleanup temporary buffer */  MNG_FREE (pData, pData->pJPEGbuf, pData->iJPEGbufmax)                                       /* cleanup space for JPEG structures */#ifdef MNG_INCLUDE_JNG_READ  MNG_FREE (pData, pData->pJPEGdinfo, sizeof (mngjpeg_decomp))  MNG_FREE (pData, pData->pJPEGdsrc,  sizeof (mngjpeg_source))  MNG_FREE (pData, pData->pJPEGderr,  sizeof (mngjpeg_error ))#endif#ifdef MNG_INCLUDE_JNG_WRITE  MNG_FREE (pData, pData->pJPEGcinfo, sizeof (mngjpeg_comp  ))  MNG_FREE (pData, pData->pJPEGcerr,  sizeof (mngjpeg_error ))#endif  MNG_FREE (pData, pData->pJPEGrow, pData->iJPEGrowlen)  pData->bJPEGcompress    = MNG_FALSE; /* whatever we were doing ... */  pData->bJPEGdecompress  = MNG_FALSE; /* we don't anymore ... */  pData->bJPEGhasheader   = MNG_FALSE;  pData->bJPEGdecostarted = MNG_FALSE;  pData->bJPEGscanstarted = MNG_FALSE;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (pData, MNG_FN_JPEG_CLEANUP, MNG_LC_END)#endif  return MNG_NOERROR;}