vbscript: Don't free procs allocated in the heap pool.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
bdf905d661
commit
c47dfe45c7
|
@ -1002,13 +1002,6 @@ static ULONG WINAPI ScriptDisp_Release(IDispatchEx *iface)
|
||||||
if(!ref) {
|
if(!ref) {
|
||||||
assert(!This->ctx);
|
assert(!This->ctx);
|
||||||
|
|
||||||
while (This->procs)
|
|
||||||
{
|
|
||||||
class_desc_t *class_desc = This->procs;
|
|
||||||
This->procs = class_desc->next;
|
|
||||||
heap_free(class_desc);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 0; i < This->global_vars_cnt; i++)
|
for (i = 0; i < This->global_vars_cnt; i++)
|
||||||
release_dynamic_var(This->global_vars[i]);
|
release_dynamic_var(This->global_vars[i]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue