cvs: TSRM(PHP_4_3) / TSRM.c

From: Date: Mon, 15 Dec 2003 01:14:54 +0000
Subject: cvs: TSRM(PHP_4_3) / TSRM.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2116@lists.php.net to get a copy of this message
sniper Sun Dec 14 20:14:54 2003 EDT Modified files: (Branch: PHP_4_3) /TSRM TSRM.c Log: MFH: Fix from Michael Sisolak (destructors weren't always properly called) Index: TSRM/TSRM.c diff -u TSRM/TSRM.c:1.47.2.1 TSRM/TSRM.c:1.47.2.2 --- TSRM/TSRM.c:1.47.2.1 Tue Aug 5 16:05:17 2003 +++ TSRM/TSRM.c Sun Dec 14 20:14:54 2003 @@ -157,7 +157,10 @@ int j; next_p = p->next; - for (j=0; j<id_count; j++) { + for (j=0; j<p->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);

« previous php.zend-engine.cvs (#2116) next »