]> git.mxchange.org Git - simgear.git/blobdiff - simgear/screen/texture.cxx
make headers include headers they depend on, don't rely on the c(xx)
[simgear.git] / simgear / screen / texture.cxx
index 184f6e2dd35b39ef2928f30656fcb572f11caf34..b3f96f040aaa01898ca5a2adf5fef93bf3c42b72 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();
@@ -538,6 +538,8 @@ SGTexture::ImageClose(SGTexture::ImageRec *image) {
     if (image->file)  gzclose(image->file);
     if (file) fclose(file);
     delete[] image->tmp;
+    delete[] image->rowStart;
+    delete[] image->rowSize;
     delete image;
 }