Browse Source

call dtors on shutdown

PHP-5
Zeev Suraski 23 years ago
parent
commit
efb9fdf0e6
  1. 3
      TSRM/TSRM.c

3
TSRM/TSRM.c

@ -158,6 +158,9 @@ TSRM_API void tsrm_shutdown(void)
next_p = p->next;
for (j=0; j<id_count; j++) {
if (resource_types_table && resource_types_table[j].dtor) {
resource_types_table[j].dtor(p->storage[j], &p->storage);
}
free(p->storage[j]);
}
free(p->storage);

Loading…
Cancel
Save