fix SEGV when using uv_idle_stop

This commit is contained in:
Shuhei Tanuma 2012-05-30 22:34:14 +09:00
parent d9623a895a
commit 653307e052

View File

@ -1197,10 +1197,10 @@ PHP_FUNCTION(uv_idle_stop)
"r", &idle) == FAILURE) { "r", &idle) == FAILURE) {
return; return;
} }
zend_list_delete(uv->resource_id);
ZEND_FETCH_RESOURCE(uv, php_uv_t *, &idle, -1, PHP_UV_RESOURCE_NAME, uv_resource_handle); ZEND_FETCH_RESOURCE(uv, php_uv_t *, &idle, -1, PHP_UV_RESOURCE_NAME, uv_resource_handle);
uv_idle_stop((uv_idle_t*)&uv->uv.idle); uv_idle_stop((uv_idle_t*)&uv->uv.idle);
zend_list_delete(uv->resource_id);
} }
/* }}} */ /* }}} */