System: Win 64
Blender: 2.8 - latest daily build (10 January)
Short description of error
Run:
C.active_object.to_mesh(C.depsgraph, True)
on curve object. curve.data.users property will be increased by one incorrectly, even though generated mesh type of data should not affect selected curve data count.
Object.to_mesh() works ok with mesh objects ('users' count property is not increased)
Simple blend file with curve and command: C.active_object.to_mesh(C.depsgraph, True). Mesh is generated ok, but curve.data.count is bigger:
After restart the user count it back to correct value of 1.