You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remember that the scope of a handle does not interfere with the memory allocation of the attribute. If you do not delete an attribute explicitly, it will stay allocated until the mesh itself is destroyed, even if you do not have any more handles to it.
Also the following code may segfault when the path does not exist (not connected)
Hi @zarquon42b
I was testing my code with
valgrind
and it led me to the following code:Rvcg/src/Rdijkstra.cpp
Lines 96 to 99 in a7c34a5
I wonder should
AddPerVertexAttribute
be used withDeletePerVertexAttribute
together?https://vcg.isti.cnr.it/vcglib/attributes.html states that:
Also the following code may segfault when the path does not exist (not connected)
Rvcg/src/Rdijkstra.cpp
Lines 117 to 121 in a7c34a5
When the segfault happens,
parent
will beNULL
, hence indexingindices[parent]
will crash the process.The text was updated successfully, but these errors were encountered: