fixed delete statement (bug 721765)
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 8 May 2003 15:47:00 +0000 (15:47 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 8 May 2003 15:47:00 +0000 (15:47 +0000)
src/glu/sgi/libnurbs/internals/trimvertpool.cc

index 26761b91480a4528fb4531bec3692251e7745b1b..7c12ab399948263e6646cb09f6b6f7e98a3e447e 100644 (file)
@@ -35,8 +35,8 @@
 /*
  * trimvertexpool.c++
  *
- * $Date: 2001/03/17 00:25:41 $ $Revision: 1.1 $
- * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/trimvertpool.cc,v 1.1 2001/03/17 00:25:41 brianp Exp $
+ * $Date: 2003/05/08 15:47:00 $ $Revision: 1.2 $
+ * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/trimvertpool.cc,v 1.2 2003/05/08 15:47:00 brianp Exp $
  */
 
 #include "glimports.h"
@@ -68,7 +68,7 @@ TrimVertexPool::~TrimVertexPool( void )
 {
     // free all arrays of TrimVertices vertices
     while( nextvlistslot ) {
-       delete vlist[--nextvlistslot];
+       delete [] vlist[--nextvlistslot];
     }
 
     // reallocate space for array of pointers to vertex lists
@@ -87,7 +87,7 @@ TrimVertexPool::clear( void )
 
     // free all arrays of TrimVertices vertices
     while( nextvlistslot ) {
-       delete vlist[--nextvlistslot];
+       delete [] vlist[--nextvlistslot];
        vlist[nextvlistslot] = 0;
     }