Fix #918: geeqie crash when using JPEG XL images
authorColin Clark <colin.clark@cclark.uk>
Thu, 19 Aug 2021 08:40:14 +0000 (09:40 +0100)
committerColin Clark <colin.clark@cclark.uk>
Thu, 19 Aug 2021 08:40:14 +0000 (09:40 +0100)
https://github.com/BestImageViewer/geeqie/issues/918

Call to JxlDecoderDestroy() had been omitted.

src/image_load_jpegxl.c

index d315c54..e2b22f9 100644 (file)
@@ -147,6 +147,8 @@ static uint8_t *JxlMemoryToPixels(const uint8_t *next_in, size_t size, size_t *s
       break;
     }
   }
+
+  JxlDecoderDestroy(dec);
   if (success){
     return pixels;
   } else {