diff options
Diffstat (limited to 'src/clpp11.hpp')
-rw-r--r-- | src/clpp11.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 } |