diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-02-28 22:00:20 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-02-28 22:00:20 +0800 |
commit | e30adf5d90786cc1145828f304a0857f03fe562c (patch) | |
tree | 83658462cae7949534e729b839747f4aceecd8df | |
parent | 875ec756ab0f8ae86c40b9d9432d9c7b0b66c318 (diff) | |
download | gsoc2013-empathy-e30adf5d90786cc1145828f304a0857f03fe562c.tar gsoc2013-empathy-e30adf5d90786cc1145828f304a0857f03fe562c.tar.gz gsoc2013-empathy-e30adf5d90786cc1145828f304a0857f03fe562c.tar.bz2 gsoc2013-empathy-e30adf5d90786cc1145828f304a0857f03fe562c.tar.lz gsoc2013-empathy-e30adf5d90786cc1145828f304a0857f03fe562c.tar.xz gsoc2013-empathy-e30adf5d90786cc1145828f304a0857f03fe562c.tar.zst gsoc2013-empathy-e30adf5d90786cc1145828f304a0857f03fe562c.zip |
find_items_cb: copy the string stored in the result
-rw-r--r-- | libempathy/empathy-keyring.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy/empathy-keyring.c b/libempathy/empathy-keyring.c index 425ae1ed6..3a5f6dc73 100644 --- a/libempathy/empathy-keyring.c +++ b/libempathy/empathy-keyring.c @@ -80,7 +80,8 @@ find_items_cb (GnomeKeyringResult result, found = list->data; DEBUG ("Got secret"); - g_simple_async_result_set_op_res_gpointer (simple, found->secret, NULL); + g_simple_async_result_set_op_res_gpointer (simple, g_strdup (found->secret), + g_free); out: g_simple_async_result_complete (simple); |