173a174,192 > #ifdef __GNUC__ > /* > * If we are unloaded before the thread terminates, make sure we free up > * the thread clean-up destructor. > * > */ > static void __attribute__ ((destructor)) > _mxml_fini(void) > { > if(_mxml_key != -1) > { > void *g; > if((g = pthread_getspecific(_mxml_key)) != NULL) > free(g); > pthread_key_delete(_mxml_key); > _mxml_key = -1; > } > } > #endif