Revert staticPose MarkerData to a naked ptr and transfer its ownership to the MarkersReference. Move exception to before the MarkerData is created so that if exception is thrown MarkerData is not leaked.
Revert staticPose MarkerData to a naked ptr and transfer its ownership to the MarkersReference.
Move exception to before the MarkerData is created so that if exception is thrown MarkerData is not leaked.

opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core