From ef0037313c13426ec4bfe02dd372b2c8ad2e41da Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 18 Jun 2025 09:42:02 +0200 Subject: [PATCH] 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). --- test/gpujpeg_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/gpujpeg_test.cpp b/test/gpujpeg_test.cpp index f70ab9294..73944e125 100644 --- a/test/gpujpeg_test.cpp +++ b/test/gpujpeg_test.cpp @@ -36,7 +36,7 @@ static state_decompress *decompress{nullptr}; static void gpujpeg_test_teardown() { - module_done(CAST_MODULE(compress)); + compress_done(compress); if (decompress != nullptr) { decompress_done(decompress); } @@ -50,7 +50,7 @@ static void gpujpeg_test_setup() int ret = compress_init(nullptr, "GPUJPEG:check", &compression); if(ret >= 0) { if(ret == 0) { - module_done(CAST_MODULE(compression)); + compress_done(compression); } } else { clog << "Either GPUJPEG not compiled in or no CUDA-capable devices found - skipping GPUJPEG tests.\n";