From: David Kastrup Date: Sat, 4 Feb 2017 22:13:01 +0000 (+0100) Subject: Issue 5057/5: Stop SCM/int confusion for grob interface table X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=commitdiff_plain;h=9b94faa34d9d2bd1f6b4a0049e16480d7eb0687e;p=lilypond.git Issue 5057/5: Stop SCM/int confusion for grob interface table --- diff --git a/lily/grob-interface-scheme.cc b/lily/grob-interface-scheme.cc index 3d5fa39a07..11a5576169 100644 --- a/lily/grob-interface-scheme.cc +++ b/lily/grob-interface-scheme.cc @@ -19,18 +19,15 @@ #include "lily-guile.hh" #include "std-string.hh" +#include "protected-scm.hh" -static SCM all_ifaces; +static Protected_scm all_ifaces; void internal_add_interface (SCM a, SCM b, SCM c) { - if (!all_ifaces) - { - SCM tab = scm_c_make_hash_table (59); - all_ifaces = tab; - scm_permanent_object (tab); - } + if (!all_ifaces.is_bound ()) + all_ifaces = scm_c_make_hash_table (59); SCM entry = scm_list_3 (a, b, c);