1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 11:42:17 +02:00

Instances should not be freed in dtor()...

This commit is contained in:
Moriyoshi Koizumi
2003-01-07 22:53:42 +00:00
parent b86a4edeed
commit b064810550

View File

@@ -265,8 +265,7 @@ static int php_base64_filter_ctor(php_base64_filter *inst)
static void php_base64_filter_dtor(php_base64_filter *inst)
{
assert(inst != NULL);
efree(inst);
/* do nothing */
}
static size_t strfilter_base64_write(php_stream *stream, php_stream_filter *thisfilter,
@@ -448,6 +447,9 @@ static int strfilter_base64_eof(php_stream *stream, php_stream_filter *thisfilte
static void strfilter_base64_dtor(php_stream_filter *thisfilter TSRMLS_DC)
{
php_base64_filter_dtor((php_base64_filter *)thisfilter->abstract);
assert(thisfilter->abstract != NULL);
efree(thisfilter->abstract);
}
static php_stream_filter_ops strfilter_base64_ops = {