gi: support freeing GObject return type everything