Skip to content

Commit ef00373

Browse files
committed
fix gpujpeg_test
The test was still using module_done to destroy compress - this was incorrect the commit 0557730 (2024-03-08) but didn't crash because struct compress_state still has struct module as first member (the test is also not run by CI).
1 parent f66647c commit ef00373

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/gpujpeg_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static state_decompress *decompress{nullptr};
3636

3737
static void gpujpeg_test_teardown()
3838
{
39-
module_done(CAST_MODULE(compress));
39+
compress_done(compress);
4040
if (decompress != nullptr) {
4141
decompress_done(decompress);
4242
}
@@ -50,7 +50,7 @@ static void gpujpeg_test_setup()
5050
int ret = compress_init(nullptr, "GPUJPEG:check", &compression);
5151
if(ret >= 0) {
5252
if(ret == 0) {
53-
module_done(CAST_MODULE(compression));
53+
compress_done(compression);
5454
}
5555
} else {
5656
clog << "Either GPUJPEG not compiled in or no CUDA-capable devices found - skipping GPUJPEG tests.\n";

0 commit comments

Comments
 (0)