summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-09-18 13:06:16 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-09-19 17:03:27 +0200
commit268c33e1b32a407fb3db66c41cbb9bf15e9422a2 (patch)
treef0877a180675fafbdcbd74609c016178baf70630 /sc
parent77201250b47a267b4474a394d748c934acfaef39 (diff)
fix memory leak
Change-Id: If1afe59bc5bb40bb3fff4c74b863c6d77e006cc5
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/opencl/openclwrapper.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/opencl/openclwrapper.cxx b/sc/source/core/opencl/openclwrapper.cxx
index 0fe2220f3218..d4cf1b715b77 100644
--- a/sc/source/core/opencl/openclwrapper.cxx
+++ b/sc/source/core/opencl/openclwrapper.cxx
@@ -475,10 +475,10 @@ int OpenclDevice::compileKernelFile( GPUEnv *gpuInfo, const char *buildOption )
{
// something went wrong, fall back to compiling from source
bBinaryExisted = false;
- for(size_t i = 0; i < numDevices; ++i)
- {
- delete[] pBinary[i];
- }
+ }
+ for(size_t i = 0; i < numDevices; ++i)
+ {
+ delete[] pBinary[i];
}
}