X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fgrob-interface-scheme.cc;h=11a5576169761bf4c4c436d7deb92e3b96bce9bc;hb=97a0169312a260933246ab224e4f8b0969871dd5;hp=3d5fa39a074314ddd4413e4ad3a2c75113b0be36;hpb=b2f85298979e5d3516c313900cda9c6129b96d25;p=lilypond.git 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);