Remove the code if not needed. No need to ref/unref a pointer in a DynArray.