]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix crash in safe mode due to unprotected module in internal_ly_eval_scm
authorDavid Kastrup <dak@gnu.org>
Sat, 26 Nov 2011 12:21:45 +0000 (13:21 +0100)
committerDavid Kastrup <dak@gnu.org>
Sat, 26 Nov 2011 12:21:45 +0000 (13:21 +0100)
Might be responsible for a number of issues.

lily/parse-scm.cc

index 9cd177f23cc62546fde07e8895525fa40c24690a..34e98e1375b27efc965f61fcae79f0269294bd77 100644 (file)
@@ -79,7 +79,7 @@ internal_ly_eval_scm (Parse_start *ps)
       if (module == SCM_BOOL_F)
        {
          SCM function = ly_lily_module_constant ("make-safe-lilypond-module");
-         module = scm_call_0 (function);
+         module = scm_gc_protect_object (scm_call_0 (function));
        }
       
       // We define the parser so trusted Scheme functions can