Fixed memory leak in ObjectManager::setSharedProperty().