[PATCH v6 02/12] jscript: Support deletion for accessor, builtin and idx props.
Gabriel Ivăncescu
gabrielopcode at gmail.com
Tue Nov 23 07:59:07 CST 2021
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
dlls/jscript/dispex.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/dlls/jscript/dispex.c b/dlls/jscript/dispex.c
index df81e1a..87b89f1 100644
--- a/dlls/jscript/dispex.c
+++ b/dlls/jscript/dispex.c
@@ -1635,10 +1635,14 @@ static HRESULT delete_prop(dispex_prop_t *prop, BOOL *ret)
if(prop->type == PROP_JSVAL) {
jsval_release(prop->u.val);
- prop->type = PROP_DELETED;
}
- if(prop->type == PROP_ACCESSOR)
- FIXME("not supported on accessor property\n");
+ if(prop->type == PROP_ACCESSOR) {
+ if(prop->u.accessor.getter)
+ jsdisp_release(prop->u.accessor.getter);
+ if(prop->u.accessor.setter)
+ jsdisp_release(prop->u.accessor.setter);
+ }
+ prop->type = PROP_DELETED;
return S_OK;
}
--
2.31.1
More information about the wine-devel
mailing list