]> git.mxchange.org Git - simgear.git/commitdiff
use a proper delete[]
authorehofman <ehofman>
Fri, 28 Jan 2005 15:15:23 +0000 (15:15 +0000)
committerehofman <ehofman>
Fri, 28 Jan 2005 15:15:23 +0000 (15:15 +0000)
simgear/screen/texture.cxx

index 184f6e2dd35b39ef2928f30656fcb572f11caf34..56fd95409d4ddb84492c09daa3254e4176e79bfa 100644 (file)
@@ -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();