소스 검색

Fixed SegFault error

Program was segfaulting under certain conditions (i.e. debug build)
  because the memory wasn't being set to NULL. Made change to set memory
  to NULL in triangle and valgrind is happy.


Former-commit-id: 4f02db3304ceedfad2298301063666e9757b8d9c
Nathan Clement 9 년 전
부모
커밋
7147ea0414
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      include/igl/triangle/triangulate.cpp

+ 1 - 0
include/igl/triangle/triangulate.cpp

@@ -193,6 +193,7 @@ IGL_INLINE void igl::triangle::triangulate(
   out.pointlist = NULL;
   out.trianglelist = NULL;
   out.segmentlist = NULL;
+  out.segmentmarkerlist = NULL;
 	out.pointmarkerlist = NULL;
 
   // Call triangle