Browse Source

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 năm trước cách đây
mục cha
commit
7147ea0414
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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