Skip to content

Commit aa213da

Browse files
committed
Fix another memory leak
1 parent b68bc34 commit aa213da

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
@@ -156,9 +156,10 @@ namespace Sass {
156156
a->variable(), a->ns(), a->is_global()));
157157
assigne = &compiler.varRoot.getVariable(a->vidx());
158158
if (!result) result = a->value()->accept(this);
159+
if (result) result = withoutSlash(result);
159160
compiler.varRoot.setVariable(
160161
a->vidx(),
161-
withoutSlash(result),
162+
result,
162163
a->is_default());
163164
assigne = nullptr;
164165

0 commit comments

Comments
 (0)