diff --git a/simgear/screen/texture.cxx b/simgear/screen/texture.cxx index 184f6e2d..56fd9540 100644 --- a/simgear/screen/texture.cxx +++ b/simgear/screen/texture.cxx @@ -49,7 +49,7 @@ SGTexture::SGTexture(unsigned int width, unsigned int height) SGTexture::~SGTexture() { - delete texture_data; + delete[] texture_data; if ( texture_id != 0 ) { free_id();