Skip to content

Commit

Permalink
Disabled calling dtors on tsrm_shutdown - calling dtors in tsrm_shutd…
Browse files Browse the repository at this point in the history
…own makes

modules registering TSRM ids to crash, if they have dtors, since the module
is unloaded before tsrm_shutdown is called. Can be re-enabled after
tsrm_free_id is implemented.
  • Loading branch information
smalyshev committed Mar 30, 2004
1 parent 04d178f commit 07266a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions TSRM/TSRM.c
Expand Up @@ -158,9 +158,17 @@ TSRM_API void tsrm_shutdown(void)

next_p = p->next;
for (j=0; j<p->count; j++) {
/*
Disabled calling dtors on tsrm_shutdown - calling dtors
in tsrm_shutdown makes modules registering TSRM ids
to crash, if they have dtors, since the module is unloaded
before tsrm_shutdown is called. Can be re-enabled after
tsrm_free_id is implemented.
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);
Expand Down

0 comments on commit 07266a1

Please sign in to comment.