Skip to content

Commit add4fe4

Browse files
committed
test fix for seg fault
1 parent 86e5d04 commit add4fe4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pymunk/shapes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def shapefree(cp_shape: ffi.CData) -> None:
6363
if cp_space != ffi.NULL:
6464
cp.cpSpaceRemoveShape(cp_space, cp_shape)
6565

66-
cp_body = cp.cpShapeGetBody(cp_shape)
67-
if cp_body != ffi.NULL:
68-
cp.cpShapeSetBody(cp_shape, ffi.NULL)
66+
# cp_body = cp.cpShapeGetBody(cp_shape)
67+
# if cp_body != ffi.NULL:
68+
# cp.cpShapeSetBody(cp_shape, ffi.NULL)
6969
cp.cpShapeFree(cp_shape)
7070

7171
self._shape = ffi.gc(_shape, shapefree)

0 commit comments

Comments
 (0)