Fixes an issue under Android when the driver was already unloaded (#462)

pull/465/head
Cedric Nugteren 2023-05-10 17:10:17 +02:00 committed by GitHub
parent d94d086d6f
commit 3baf823575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@ Development version (next version)
- Fixed a bug in XAMAX/XAMIN routines that would cause only the real part of a complex number to be taken into account
- Fixed a bug that caused tests to not properly do integer-output testing (for XAMAX/XAMIN)
- Fixes a minor issue with the expected input buffer size in the TRMV/TBMV/TPMV/TRSV routines
- Fixes an issue with crashes on Android related to calling clReleaseProgram
- Fixes two small issues in the plotting script
- Fixed a documentation bug in the 'ld' requirements
- Added tuned parameters for various devices (see doc/tuning.md)

View File

@ -487,7 +487,8 @@ class Program {
// Clean-up
~Program() {
#ifndef _MSC_VER // causes an access violation under Windows when the driver is already unloaded
// Causes an access violation under Windows or Android when the driver is already unloaded
#if !defined(__ANDROID__) && !defined(_MSC_VER)
if (program_) { CheckErrorDtor(clReleaseProgram(program_)); }
#endif
}