mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-25 08:43:17 -06:00
make a temporary copy of the name, in case if the database gets relocated
This commit is contained in:
1 parent
49a3eaaa39
commit
32cb9a2144
1 file changed
+3
-1
@@ -154,7 +154,9 @@ PgfProbspace probspace_delete_by_cat(PgfProbspace space, PgfText *cat,
|
||||
|
||||
return Node<PgfProbspaceEntry>::link(space,space->left,right);
|
||||
} else {
|
||||
itor->fn(itor, &space->value.fun->name, space->value.fun.as_object(), err);
|
||||
PgfText *name = textdup(&space->value.fun->name);
|
||||
itor->fn(itor, name, space->value.fun.as_object(), err);
|
||||
free(name);
|
||||
if (err->type != PGF_EXN_NONE)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in new issue
Block a user