(filter): Unref ic_info->preceding_text and
authorhanda <handa>
Mon, 7 Nov 2005 13:04:54 +0000 (13:04 +0000)
committerhanda <handa>
Mon, 7 Nov 2005 13:04:54 +0000 (13:04 +0000)
ic_info->following_text.

src/input.c

index 96726ba..1e47e03 100644 (file)
@@ -2556,6 +2556,8 @@ filter (MInputContext *ic, MSymbol key, void *arg)
     }
   mtext_reset (ic->produced);
   ic->status_changed = ic->preedit_changed = ic->candidates_changed = 0;
+  M17N_OBJECT_UNREF (ic_info->preceding_text);
+  M17N_OBJECT_UNREF (ic_info->following_text);
   MLIST_APPEND1 (ic_info, keys, key, MERROR_IM);
   ic_info->key_unhandled = 0;
   do {