2 Commits 6e6f824d2b ... d01808fae3

Author SHA1 Message Date
  Nichlas Severinsen d01808fae3 Release 0.0.2 3 years ago
  Nichlas Severinsen 70664d105a Fix #2 3 years ago
2 changed files with 9 additions and 2 deletions
  1. 8 1
      CHANGELOG.md
  2. 1 1
      src/util.h

+ 8 - 1
CHANGELOG.md

@@ -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
 ### Added
 - Support for .j2c, .j2k, .jp2, .jpc, .jpf, .jpm, .jpx file extensions

+ 1 - 1
src/util.h

@@ -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)
 	{