Fix use after free when returned objects hold only one ref