cvs: php-src /ext/com_dotnet com_handlers.c

From: Date: Tue, 13 Jan 2004 16:02:57 +0000
Subject: cvs: php-src /ext/com_dotnet com_handlers.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-25628@lists.php.net to get a copy of this message
wez Tue Jan 13 11:02:57 2004 EDT Modified files: /php-src/ext/com_dotnet com_handlers.c Log: Fix refcount on these return values to avoid a leak and allow object dtor's to be called. This in turn prevents a massive slow-down in CoUninitialize which would have to forcibly destroy the COM objects in request shutdown. Index: php-src/ext/com_dotnet/com_handlers.c diff -u php-src/ext/com_dotnet/com_handlers.c:1.11 php-src/ext/com_dotnet/com_handlers.c:1.12 --- php-src/ext/com_dotnet/com_handlers.c:1.11 Tue Jan 13 08:38:11 2004 +++ php-src/ext/com_dotnet/com_handlers.c Tue Jan 13 11:02:56 2004 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: com_handlers.c,v 1.11 2004/01/13 13:38:11 wez Exp $ */ +/* $Id: com_handlers.c,v 1.12 2004/01/13 16:02:56 wez Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -37,6 +37,8 @@ MAKE_STD_ZVAL(return_value); ZVAL_NULL(return_value); + return_value->refcount = 0; + return_value->is_ref = 0; obj = CDNO_FETCH(object); @@ -110,6 +112,8 @@ MAKE_STD_ZVAL(return_value); ZVAL_NULL(return_value); + return_value->refcount = 0; + return_value->is_ref = 0; obj = CDNO_FETCH(object);

« previous php.cvs (#25628) next »