Skip to content

Commit 89bf7a4

Browse files
committed
fix free string in cv.imencode
1 parent 60257e7 commit 89bf7a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/imgcodecs/imgcodecs.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ Uint8List imencode(
7373
if (!success.value) {
7474
throw CvException(ErrorCode.StsError.code, msg: "imencode failed, check your params");
7575
}
76+
calloc.free(cExt);
7677
return VecUChar.fromPointer(buffer).toU8List();
7778
}
7879

0 commit comments

Comments
 (0)