jpeg_destroy_compress

Name

jpeg_destroy_compress -- deallocate a JPEG compression object

Synopsis

#include <jpeglib.h>

void jpeg_destroy_compress(j_compress_ptr cinfo);

Description

The function jpeg_destroy_compress() shall deallocate and release all memory associated with the compression object. The jpeg_compress_struct itself and the error manager struct allocated by the application should not be freed by this function.