(get_candidate_list): Avoid unnecessary unref.
authorhanda <handa>
Wed, 28 Mar 2007 08:10:10 +0000 (08:10 +0000)
committerhanda <handa>
Wed, 28 Mar 2007 08:10:10 +0000 (08:10 +0000)
src/input.c

index c2a52a1..7b69f6e 100644 (file)
@@ -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)