mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
vbscript: Make sure to remove an object from object list in collect_objects.
This commit is contained in:
parent
4b9d21843c
commit
c90c39304f
1 changed files with 5 additions and 1 deletions
|
@ -495,10 +495,14 @@ void collect_objects(script_ctx_t *ctx)
|
|||
LIST_FOR_EACH_ENTRY_SAFE(iter, iter2, &ctx->objects, vbdisp_t, entry)
|
||||
run_terminator(iter);
|
||||
|
||||
LIST_FOR_EACH_ENTRY_SAFE(iter, iter2, &ctx->objects, vbdisp_t, entry) {
|
||||
while(!list_empty(&ctx->objects)) {
|
||||
iter = LIST_ENTRY(list_head(&ctx->objects), vbdisp_t, entry);
|
||||
|
||||
IDispatchEx_AddRef(&iter->IDispatchEx_iface);
|
||||
clean_props(iter);
|
||||
iter->desc = NULL;
|
||||
list_remove(&iter->entry);
|
||||
list_init(&iter->entry);
|
||||
IDispatchEx_Release(&iter->IDispatchEx_iface);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue