mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 01:08:03 +02:00
fixed delete statement (bug 721765)
This commit is contained in:
parent
7357f20b1e
commit
6636a61418
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue