I wrote :
> Erik Hofman wrote:
> > Curtis L. Olson wrote:
> > > I'm getting a seg fault on exit these days somewhere in ~SGTexture.  I
> > > haven't investigated further than that ... anyone have any ideas?
> >
> > I am not seeing this.
> > Could it be the result of a stale object file?
>
> I am seeing the same problem with MSVC and we need to apply the patch
> below to fix it. Otherwise, there is a double deletion of the same
> memory, in the destructor.

Please ignore my previous patch. It only produce white splash. Instead,
please apply the one below. The memory is deleted in the destructor.

Thanks,
-Fred

D:\FlightGear\cvs\SimGear\simgear\screen>cvs -q diff -u texture.hxx
Index: texture.hxx
===================================================================
RCS file: /var/cvs/SimGear-0.3/SimGear/simgear/screen/texture.hxx,v
retrieving revision 1.3
diff -u -r1.3 texture.hxx
--- texture.hxx 1 Jul 2003 09:49:45 -0000       1.3
+++ texture.hxx 9 Jul 2003 20:53:20 -0000
@@ -109,8 +109,6 @@
         glTexImage2D( GL_TEXTURE_2D, 0, GL_RGB,
                       texture_width, texture_height, 0,
                       GL_RGB, GL_UNSIGNED_BYTE, texture_data );
-
-        delete texture_data;
     }

     // Nowhere does it say that resident textures have to be in video
memory!



_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to