[#57082588] fixed memory leak in share view controller
Revert "merged from ocmock master"

This reverts commit 564f66ffed4670b5e97031d4fa7677de89c3e99e.