@@ -3,10 +3,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
-## [Unreleased]
+## [Unreleased] -
+### Added
+-
+
+## [0.0.2] - 2020-09-25
### Added
- Support for CMYK colorspace
+### Fixed
+- Fix SIGSEGV happening when cleaning up after a failed load.
## [0.0.1] - 2020-04-01
- Support for .j2c, .j2k, .jp2, .jpc, .jpf, .jpm, .jpx file extensions
@@ -111,7 +111,7 @@ opj_stream_t* util_create_stream(FILE *fp)
/**
* Destroy stream, codec, and image. As long as they aren't null pointers.
*/
-void util_destroy(opj_stream_t* stream, opj_codec_t *codec, opj_image_t *image)
+void util_destroy(opj_codec_t *codec, opj_stream_t* stream, opj_image_t *image)
{
if(stream != NULL)