Fix two refcounting bugs
1 file changed