diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2023-05-10 17:10:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-10 17:10:17 +0200 |
commit | 3baf82357552f66e35728b9bb00ca32da54125ea (patch) | |
tree | 81865b216dd7fe763c712eda9be3c7629cec3f70 | |
parent | d94d086d6f92ff1f73bd2a8595a974f6802b3f24 (diff) |
Fixes an issue under Android when the driver was already unloaded (#462)
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | src/clpp11.hpp | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -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) diff --git a/src/clpp11.hpp b/src/clpp11.hpp index e5b8b4a7..3fb89f5e 100644 --- a/src/clpp11.hpp +++ b/src/clpp11.hpp @@ -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 } |