summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-02-25 02:19:00 -0800
committerVinson Lee <vlee@vmware.com>2010-02-25 02:19:00 -0800
commitc3ea160eeaa70ac2d9992cea86f9f3a123e1b1d4 (patch)
tree818a8efa629b771f2bec100059a03e1b7740fb78
parent38a33932bdf4bb5caa87acc54d765fd559a92465 (diff)
glu/sgi: Set freed pointer to NULL.
-rw-r--r--src/libtess/mesh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libtess/mesh.c b/src/libtess/mesh.c
index 95f87cd..2e962ed 100644
--- a/src/libtess/mesh.c
+++ b/src/libtess/mesh.c
@@ -332,6 +332,7 @@ int __gl_meshSplice( GLUhalfEdge *eOrg, GLUhalfEdge *eDst )
/* We are merging two disjoint vertices -- destroy eDst->Org */
joiningVertices = TRUE;
KillVertex( eDst->Org, eOrg->Org );
+ eDst->Org = NULL;
}
if( eDst->Lface != eOrg->Lface ) {
/* We are connecting two disjoint loops -- destroy eDst->Lface */