diff --git a/engine/qclib/qcc_pr_comp.c b/engine/qclib/qcc_pr_comp.c index 5df47c102..4b2e05012 100644 --- a/engine/qclib/qcc_pr_comp.c +++ b/engine/qclib/qcc_pr_comp.c @@ -2755,6 +2755,10 @@ QCC_def_t *QCC_PR_GenerateFunctionCall (QCC_def_t *func, QCC_def_t *arglist[], i if (oldret) { + // Make sure our def_ret backup temp wasn't freed above + QCC_UnFreeTemp(oldret); //this bug fix was brought to you by Blub, the character \ and the number 0. + + //if we preserved the ofs_ret global, restore it here if (t->type == ev_variant) {