Fix GVariant leaks

BUG=http://code.google.com/p/ibus/issues/detail?id=1712

Review URL: https://codereview.appspot.com/109720043
Patch from Christophe Fergeau <cfergeau@redhat.com>.