Mesa (master): glu/sgi: Set freed pointer to NULL.

Vinson Lee vlee at kemper.freedesktop.org
Thu Feb 25 10:20:10 UTC 2010


Module: Mesa
Branch: master
Commit: 9be414f4b93c763e1aee8f634a13721ae5d95fcd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9be414f4b93c763e1aee8f634a13721ae5d95fcd

Author: Vinson Lee <vlee at vmware.com>
Date:   Thu Feb 25 02:19:00 2010 -0800

glu/sgi: Set freed pointer to NULL.

---

 src/glu/sgi/libtess/mesh.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/glu/sgi/libtess/mesh.c b/src/glu/sgi/libtess/mesh.c
index 95f87cd..2e962ed 100644
--- a/src/glu/sgi/libtess/mesh.c
+++ b/src/glu/sgi/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 */




More information about the mesa-commit mailing list