[ShareKit] Fixed a memory leak.