I think you need to unref this. Can you please check with valgrind?