fix memory leaks when deleting markers in MarkerArrayClient