mtext_attach_property (mt, from, from + word->len, this);
if (pos >= from && pos < from + word->len)
prop = this;
- else
- M17N_OBJECT_UNREF (this);
+ M17N_OBJECT_UNREF (this);
from += word->len;
}
}
this = mtext_property (Mthai_wordseg, Mnil,
MTEXTPROP_VOLATILE_WEAK | MTEXTPROP_NO_MERGE);
mtext_attach_property (mt, last, from + wordcut_result.start[i],
- prop);
+ this);
if (pos >= last && pos < from + wordcut_result.start[i])
prop = this;
- else
- M17N_OBJECT_UNREF (this);
+ M17N_OBJECT_UNREF (this);
}
this = mtext_property (Mthai_wordseg, Mt,
mtext_attach_property (mt, last, last + wordcut_result.offset[i], this);
if (pos >= last && pos < last + wordcut_result.offset[i])
prop = this;
- else
- m17n_object_unref (this);
+ m17n_object_unref (this);
last += wordcut_result.offset[i];
}
return prop;
*from = MTEXTPROP_START (prop);
*to = MTEXTPROP_END (prop);
in_word = MTEXTPROP_VAL (prop) == Mt;
- M17N_OBJECT_UNREF (prop);
return in_word;
}