Remove duplication g_object_ref in ibus_keymap_get
authorPeng Huang <shawn.p.huang@gmail.com>
Tue, 2 Feb 2010 00:40:56 +0000 (08:40 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Tue, 2 Feb 2010 00:40:56 +0000 (08:40 +0800)
src/ibuskeymap.c

index 6443f95e83e03914617ee894de51c9b38d78e5d1..19744b5654c99d24e57d8fff7fbe244bbaffd785 100644 (file)
@@ -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);
         }