aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL/OpenCL.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/CL/OpenCL.cpp')
-rw-r--r--src/core/CL/OpenCL.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/CL/OpenCL.cpp b/src/core/CL/OpenCL.cpp
index 0212774161..ef03a5a302 100644
--- a/src/core/CL/OpenCL.cpp
+++ b/src/core/CL/OpenCL.cpp
@@ -35,14 +35,6 @@ CLSymbols &CLSymbols::get()
return symbols;
}
-CLSymbols::~CLSymbols()
-{
- if(handle)
- {
- dlclose(handle);
- }
-}
-
bool CLSymbols::load_default()
{
static const std::vector<std::string> libraries{ "libOpenCL.so", "libGLES_mali.so", "libmali.so" };
@@ -69,7 +61,7 @@ bool CLSymbols::load_default()
bool CLSymbols::load(const std::string &library)
{
- handle = dlopen(library.c_str(), RTLD_LAZY | RTLD_LOCAL);
+ void *handle = dlopen(library.c_str(), RTLD_LAZY | RTLD_LOCAL);
if(handle == nullptr)
{