summaryrefslogtreecommitdiff
path: root/atspi/atspi-misc.c
diff options
context:
space:
mode:
authorMike Gorse <mgorse@novell.com>2011-01-01 06:41:10 -0500
committerMike Gorse <mgorse@novell.com>2011-01-01 06:41:10 -0500
commite19d5c61d12104d0f7c94a8280096a5d637d53f9 (patch)
treea30f4b3b4c617b006c7d3a2dd7630f4564c5bae4 /atspi/atspi-misc.c
parenta518c9beea394583a0e4d8c7b53065a51fac1b58 (diff)
downloadat-spi2-core-e19d5c61d12104d0f7c94a8280096a5d637d53f9.tar.gz
Fix storing and freeing of hyperlink paths
Diffstat (limited to 'atspi/atspi-misc.c')
-rw-r--r--atspi/atspi-misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/atspi/atspi-misc.c b/atspi/atspi-misc.c
index 8dca97cf..dd014a83 100644
--- a/atspi/atspi-misc.c
+++ b/atspi/atspi-misc.c
@@ -254,7 +254,7 @@ ref_hyperlink (const char *app_name, const char *path)
hyperlink = atspi_hyperlink_new (app, path);
if (!hyperlink)
return NULL;
- g_hash_table_insert (app->hash, hyperlink->parent.path, hyperlink);
+ g_hash_table_insert (app->hash, g_strdup (hyperlink->parent.path), hyperlink);
/* TODO: This should be a weak ref */
g_object_ref (hyperlink); /* for the hash */
return hyperlink;