Browse Source

Using delete[] for char array.

vectorfields
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 */
addSource(source);
delete source;
delete[] source;
return true;
}

Loading…
Cancel
Save