Fix bug where everything is leaked under manual retain–release