Browse Source

Using delete[] for char array.

pull/279/head
Vladimír Vondruš 14 years ago
parent
commit
5bff1c385b
  1. 2
      src/Shader.cpp

2
src/Shader.cpp

@ -47,7 +47,7 @@ bool Shader::addFile(const std::string& filename) {
/* Add to sources and free the buffer */ /* Add to sources and free the buffer */
addSource(source); addSource(source);
delete source; delete[] source;
return true; return true;
} }

Loading…
Cancel
Save