]> git.donarmstrong.com Git - lilypond.git/commit
Issue 4293/3: smobs.tcc: robustify {mark,print}_trampoline in connection with free_smob
authorDavid Kastrup <dak@gnu.org>
Wed, 18 Feb 2015 15:40:49 +0000 (16:40 +0100)
committerDavid Kastrup <dak@gnu.org>
Wed, 18 Feb 2015 15:50:45 +0000 (16:50 +0100)
commit60eeb4a4ff217e3abbfcb6b4de94f0a6ef6d437d
tree16b42d3bdf8e49fb4818994dbb36a613936ae2ad
parent10337721ab366a01a364497ec7cc1489547671ef
Issue 4293/3: smobs.tcc: robustify {mark,print}_trampoline in connection with free_smob

Guilev2 has little qualms calling mark/print even after freeing a smob.
So we clean out the pointer to smob data when freeing/unregistering it,
and let the mark/print trampolines detect this condition and punt.
lily/include/smobs.tcc