From: handa Date: Wed, 28 Mar 2007 08:10:10 +0000 (+0000) Subject: (get_candidate_list): Avoid unnecessary unref. X-Git-Tag: FLT-base~112 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=e05d0748e3c664f84cb10a32d9d79862dab8644a;p=m17n%2Fm17n-lib.git (get_candidate_list): Avoid unnecessary unref. --- diff --git a/src/input.c b/src/input.c index c2a52a1..7b69f6e 100644 --- a/src/input.c +++ b/src/input.c @@ -2752,7 +2752,8 @@ get_candidate_list (MInputContextInfo *ic_info, MPlist *args) next = MPLIST_NEXT (next); } } - M17N_OBJECT_UNREF (plist); + if (charset) + M17N_OBJECT_UNREF (plist); plist = mplist (); len = mtext_nchars (mt); if (len <= column)