Skip to content

Commit

Permalink
Say no to leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed May 27, 2021
1 parent 6e05daf commit ee8ea51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ namespace Sass {
// profiling only show a very minor increase (but keep anyway).
if (a->vidx().isValid()) {
assigne = &compiler.varRoot.getVariable(a->vidx());
ValueObj result = a->value()->accept(this);
compiler.varRoot.setVariable(a->vidx(),
a->value()->accept(this), a->is_default());
result, a->is_default());
assigne = nullptr;
return nullptr;
}
Expand Down

0 comments on commit ee8ea51

Please sign in to comment.