Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: src/IBusChewingEngine.gob

Issue 2449009: Fix a memory leak in mouse handling. (Closed) Base URL: ssh://git@chromiumos-git/ibus-chewing.git
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 requires 2.0.0 1 requires 2.0.0
2 2
3 %alltop{ 3 %alltop{
4 /* 4 /*
5 * Copyright © 2009 Red Hat, Inc. All rights reserved. 5 * Copyright © 2009 Red Hat, Inc. All rights reserved.
6 * Copyright © 2009 Ding-Yi Chen <dchen at redhat.com> 6 * Copyright © 2009 Ding-Yi Chen <dchen at redhat.com>
7 * 7 *
8 * This file is part of the ibus-chewing Project. 8 * This file is part of the ibus-chewing Project.
9 * 9 *
10 * This program is free software; you can redistribute it and/or 10 * This program is free software; you can redistribute it and/or
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 return; 750 return;
751 } 751 }
752 if (self->inputMode==CHEWING_INPUT_MODE_SELECTING_DONE){ 752 if (self->inputMode==CHEWING_INPUT_MODE_SELECTING_DONE){
753 int* keys = chewing_get_selKey(self->context); 753 int* keys = chewing_get_selKey(self->context);
754 if (!keys) { 754 if (!keys) {
755 G_DEBUG_MSG(3,"[I3] handle_cadidate_clicked(-, %u, %u, %u) ... N o sel keys.", index, button, state); 755 G_DEBUG_MSG(3,"[I3] handle_cadidate_clicked(-, %u, %u, %u) ... N o sel keys.", index, button, state);
756 return; 756 return;
757 } 757 }
758 ibus_chewing_engine_set_status_flag(self, ENGINE_STATUS_NEED_COMMIT) ; 758 ibus_chewing_engine_set_status_flag(self, ENGINE_STATUS_NEED_COMMIT) ;
759 chewing_handle_Default(self->context, keys[index]); 759 chewing_handle_Default(self->context, keys[index]);
760 chewing_free(keys);
760 self_update(self); 761 self_update(self);
761 } else { 762 } else {
762 G_DEBUG_MSG(3,"[I3] handle_cadidate_clicked() ... Wrong mode: %u", s elf->inputMode); 763 G_DEBUG_MSG(3,"[I3] handle_cadidate_clicked() ... Wrong mode: %u", s elf->inputMode);
763 } 764 }
764 } 765 }
765 766
766 /* 767 /*
767 * determine_input_mode: 768 * determine_input_mode:
768 * 769 *
769 * Determine input mode. 770 * Determine input mode.
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 IBusProperty *prop=self_get_iBusProperty(self, prop_name); 1025 IBusProperty *prop=self_get_iBusProperty(self, prop_name);
1025 ibus_property_set_visible(prop,FALSE); 1026 ibus_property_set_visible(prop,FALSE);
1026 ibus_engine_update_property(engine,prop); 1027 ibus_engine_update_property(engine,prop);
1027 } 1028 }
1028 } 1029 }
1029 1030
1030 %{ 1031 %{
1031 #include "IBusChewingEngine-keys.c" 1032 #include "IBusChewingEngine-keys.c"
1032 %} 1033 %}
1033 1034
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698