I think you should SG_UNREF before this.