summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2012-03-25 13:21:25 -0700
committerShawn Hoffman <godisgovernment@gmail.com>2012-03-25 13:21:25 -0700
commit48eb791a4e103f9007d335b59ddf165fb36c3b1d (patch)
treec361b725a20fa7b907c373e66b1717aa507372d7 /Source/Core/VideoCommon
parent48bfca3c8670fd2f8e0a05faa0a7fad66f954911 (diff)
parentcb92805445856e372ccbd156b4c11740525d8e55 (diff)
Merge remote-tracking branch 'timowiren/master'
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp b/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp
index 0f4809a6cc..440e69efd6 100644
--- a/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp
+++ b/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp
@@ -114,7 +114,7 @@ void TexDecoder_OpenCL_Initialize()
else
{
binary_size = input.GetSize();
- header = new char[HEADER_SIZE]; // TODO: memleak possible
+ header = new char[HEADER_SIZE];
binary = new char[binary_size];
input.ReadBytes(header, HEADER_SIZE);
input.ReadBytes(binary, binary_size);
@@ -143,8 +143,8 @@ void TexDecoder_OpenCL_Initialize()
}
}
}
- delete header;
- delete binary;
+ delete [] header;
+ delete [] binary;
}
// If an error occurred using the kernel binary, recompile the kernels