diff options
author | Sara Golemon <pollita@php.net> | 2003-06-27 16:23:58 +0000 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2003-06-27 16:23:58 +0000 |
commit | 2e4ef86e10897a0e64500d3aeeaa59d58f8f4f5b (patch) | |
tree | 1b2f818b85dcaa6b151a68c43498280e0a13ff2f /main/streams/php_stream_context.h | |
parent | ecf58cf8957738451c63a5b7b98b56c4a1c1c521 (diff) | |
download | php-git-2e4ef86e10897a0e64500d3aeeaa59d58f8f4f5b.tar.gz |
MFB
Plug leak in context notifiers, implement notifier->dtor
Diffstat (limited to 'main/streams/php_stream_context.h')
-rw-r--r-- | main/streams/php_stream_context.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/main/streams/php_stream_context.h b/main/streams/php_stream_context.h index 488029938b..7bc0233028 100644 --- a/main/streams/php_stream_context.h +++ b/main/streams/php_stream_context.h @@ -40,12 +40,15 @@ typedef void (*php_stream_notification_func)(php_stream_context *context, #define php_stream_context_to_zval(context, zval) { ZVAL_RESOURCE(zval, (context)->rsrc_id); } -typedef struct _php_stream_notifier { +typedef struct _php_stream_notifier php_stream_notifier; + +struct _php_stream_notifier { php_stream_notification_func func; + void (*dtor)(php_stream_notifier *notifier); void *ptr; int mask; size_t progress, progress_max; /* position for progress notification */ -} php_stream_notifier; +}; struct _php_stream_context { php_stream_notifier *notifier; |