Skip to content

Commit b5fb4b5

Browse files
mgreterxzyfer
authored andcommitted
Fix ref-counted value handling in if function
1 parent 592bd27 commit b5fb4b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/functions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,10 +1706,10 @@ namespace Sass {
17061706
Expand expand(ctx, &d_env, backtrace, &selector_stack);
17071707
Expression_Obj cond = ARG("$condition", Expression)->perform(&expand.eval);
17081708
bool is_true = !cond->is_false();
1709-
Expression_Ptr res = ARG(is_true ? "$if-true" : "$if-false", Expression);
1709+
Expression_Obj res = ARG(is_true ? "$if-true" : "$if-false", Expression);
17101710
res = res->perform(&expand.eval);
17111711
res->set_delayed(false); // clone?
1712-
return res;
1712+
return res.detach();
17131713
}
17141714

17151715
//////////////////////////

0 commit comments

Comments
 (0)