mirror of
https://github.com/danog/ext-uv.git
synced 2025-01-23 05:41:16 +01:00
fix SEGV when using uv_idle_stop
This commit is contained in:
parent
d9623a895a
commit
653307e052
2
php_uv.c
2
php_uv.c
@ -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);
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user