mirror of
https://github.com/NixOS/nix
synced 2025-06-29 14:53:16 +02:00
Fix GC bug in ExprPath
This commit is contained in:
parent
9e05daaa9e
commit
9411299875
5 changed files with 19 additions and 14 deletions
|
@ -183,12 +183,12 @@ struct ExprString : Expr
|
|||
|
||||
struct ExprPath : Expr
|
||||
{
|
||||
std::string s; // FIXME: remove
|
||||
const SourcePath path;
|
||||
Value v;
|
||||
ExprPath(SourcePath && path)
|
||||
: s(path.path)
|
||||
ExprPath(SourcePath && _path)
|
||||
: path(_path)
|
||||
{
|
||||
v.mkPath(std::move(path));
|
||||
v.mkPath(&path.accessor, path.path.c_str());
|
||||
}
|
||||
COMMON_METHODS
|
||||
Value * maybeThunk(EvalState & state, Env & env);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue