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;
{
AtspiObject *aobj = ATSPI_OBJECT (object);
- /* TODO: Figure out why the next line sometimes crashes */
- /*g_free (aobj->path); */
+ g_free (aobj->path);
G_OBJECT_CLASS (atspi_object_parent_class)->finalize (object);
}