diff options
author | Mike Gorse <mgorse@novell.com> | 2011-01-01 06:41:10 -0500 |
---|---|---|
committer | Mike Gorse <mgorse@novell.com> | 2011-01-01 06:41:10 -0500 |
commit | e19d5c61d12104d0f7c94a8280096a5d637d53f9 (patch) | |
tree | a30f4b3b4c617b006c7d3a2dd7630f4564c5bae4 /atspi/atspi-misc.c | |
parent | a518c9beea394583a0e4d8c7b53065a51fac1b58 (diff) | |
download | at-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.c | 2 |
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; |