mirror of
https://review.haiku-os.org/haiku
synced 2025-01-20 05:21:28 +01:00
4448758b3e
We can't allow applications to reference/unreference cursors, this is a safety/security violation, and it being done improperly lead to the reference counts becoming incorrect on the app_server side. Change AS_REFERENCE_CURSOR to AS_CLONE_CURSOR and adjust the Cursor code appropriately. (In the future, copying BCursor without Clone'ing the data in the case of custom cursors could be accomplished with client-side reference counting.) Then rework CursorManager to remove cursors at once on team deletion, and otherwise clean up cursor reference management to let the reference counting handle things.