]> git.vpit.fr Git - perl/modules/Variable-Magic.git/commit
Reference count vmg_op_name_len
authorVincent Pit <vince@profvince.com>
Sat, 14 Feb 2009 15:31:09 +0000 (16:31 +0100)
committerVincent Pit <vince@profvince.com>
Sat, 14 Feb 2009 15:34:58 +0000 (16:34 +0100)
commit439d151ce8d86e0e77c82b85538305ace71ba630
tree28c43f7fa0eb83e2c21a447606a30c5f1ab44816
parent0c0a4ff6287192aa0d25442c6a080ddd8aec5c83
Reference count vmg_op_name_len

Its refcnt is incremented when a wizard with op_info => NAME is created, and
decremented in the destructor of those wizards. This fixes segfaults that happen
when magic with op_info => NAME is casted onto a stash and not dispelled before
END time.
Magic.xs
lib/Variable/Magic.pm