summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@Gmail.com>2012-10-27 17:22:48 -0500
committerRyan Houdek <Sonicadvance1@Gmail.com>2012-10-27 17:22:48 -0500
commitc1fd640964272e68301b4f2c39e36b4f550785b6 (patch)
tree321788bd412bd805ad1432925e6457b07b10927a /Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp
parent5a6a2b2bec29e71efd8dda61bf6fb5aad4a45020 (diff)
parent7006cd12170c3b3dc3c6179a66945b5183995156 (diff)
Rebase immediate-removal on master
Diffstat (limited to 'Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp')
-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