Skip to content

Commit ee8ea51

Browse files
committed
Say no to leaks
1 parent 6e05daf commit ee8ea51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/environment.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ namespace Sass {
5959
// profiling only show a very minor increase (but keep anyway).
6060
if (a->vidx().isValid()) {
6161
assigne = &compiler.varRoot.getVariable(a->vidx());
62+
ValueObj result = a->value()->accept(this);
6263
compiler.varRoot.setVariable(a->vidx(),
63-
a->value()->accept(this), a->is_default());
64+
result, a->is_default());
6465
assigne = nullptr;
6566
return nullptr;
6667
}

0 commit comments

Comments
 (0)