Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lib/jpegtran_ffi.dart
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,15 @@ class JpegTransformer {
void dispose() {
calloc.free(_jpegBuf);

int res = _bindings.tjDestroy(_handleTransform);
int res = _bindings.tjDestroy(_handleCompress);
if (res != 0) {
throw Exception("tjDestroy failed");
}
res = _bindings.tjDestroy(_handleDecompress);
if (res != 0) {
throw Exception("tjDestroy failed");
}
res = _bindings.tjDestroy(_handleTransform);
if (res != 0) {
throw Exception("tjDestroy failed");
}
Expand Down
2 changes: 1 addition & 1 deletion libjpeg-turbo
Submodule libjpeg-turbo updated 584 files