Don't decrement the reference counter twice when destroying dynamic