Skip to content

Commit 39bda45

Browse files
committed
Fix ref-counted value handling in if function
1 parent 62ff595 commit 39bda45

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
@@ -1829,10 +1829,10 @@ namespace Sass {
18291829
Expand expand(ctx, &d_env, backtrace, &selector_stack);
18301830
Expression_Obj cond = ARG("$condition", Expression)->perform(&expand.eval);
18311831
bool is_true = !cond->is_false();
1832-
Expression_Ptr res = ARG(is_true ? "$if-true" : "$if-false", Expression);
1832+
Expression_Obj res = ARG(is_true ? "$if-true" : "$if-false", Expression);
18331833
res = res->perform(&expand.eval);
18341834
res->set_delayed(false); // clone?
1835-
return res;
1835+
return res.detach();
18361836
}
18371837

18381838
//////////////////////////

0 commit comments

Comments
 (0)