projects
/
platform
/
upstream
/
ibus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
813d0c5
)
Remove duplication g_object_ref in ibus_keymap_get
author
Peng Huang
<shawn.p.huang@gmail.com>
Tue, 2 Feb 2010 00:40:56 +0000
(08:40 +0800)
committer
Peng Huang
<shawn.p.huang@gmail.com>
Tue, 2 Feb 2010 00:40:56 +0000
(08:40 +0800)
src/ibuskeymap.c
patch
|
blob
|
history
diff --git
a/src/ibuskeymap.c
b/src/ibuskeymap.c
index 6443f95e83e03914617ee894de51c9b38d78e5d1..19744b5654c99d24e57d8fff7fbe244bbaffd785 100644
(file)
--- a/
src/ibuskeymap.c
+++ b/
src/ibuskeymap.c
@@
-258,7
+258,7
@@
ibus_keymap_get (const gchar *name)
if (ibus_keymap_load (name, keymap->keymap)) {
ibus_keymap_fill (keymap->keymap);
keymap->name = g_strdup (name);
- g_hash_table_insert (keymaps, g_strdup (keymap->name),
g_object_ref (keymap)
);
+ g_hash_table_insert (keymaps, g_strdup (keymap->name),
keymap
);
g_signal_connect (keymap, "destroy", G_CALLBACK (_keymap_destroy_cb), NULL);
}