STATIC int vmg_wizard_free(pTHX_ SV *wiz, MAGIC *mg) {
char buf[8];
MGWIZ *w;
- dMY_CXT;
if (PL_dirty) /* during global destruction, the context is already freed */
return 0;
w->owner = NULL;
#endif /* VMG_MULTIPLICITY */
+ dMY_CXT;
if (hv_delete(MY_CXT.wizz, buf, sprintf(buf, "%u", w->sig), 0)) {
--MY_CXT.count;
}