Commit 2a51c908 authored by Morten Welinder's avatar Morten Welinder

speed up expr_tree_unref in shared case.

parent ae80372b
......@@ -282,7 +282,10 @@ expr_tree_unref (ExprTree *expr)
g_return_if_fail (expr != NULL);
g_return_if_fail (expr->any.ref_count > 0);
do_expr_tree_unref (expr);
if (expr->any.ref_count == 1)
do_expr_tree_unref (expr);
else
expr->any.ref_count--;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment