Gabriel Ivăncescu : vbscript: Don't free procs allocated in the heap pool.
Alexandre Julliard
julliard at winehq.org
Mon Dec 9 16:57:38 CST 2019
Module: wine
Branch: master
Commit: c47dfe45c73379b5dd6052596f7bca31d527a87d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=c47dfe45c73379b5dd6052596f7bca31d527a87d
Author: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Date: Mon Dec 9 17:27:56 2019 +0200
vbscript: Don't free procs allocated in the heap pool.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/vbscript/vbdisp.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/dlls/vbscript/vbdisp.c b/dlls/vbscript/vbdisp.c
index 2e5905120e..47ecc15be4 100644
--- a/dlls/vbscript/vbdisp.c
+++ b/dlls/vbscript/vbdisp.c
@@ -1002,13 +1002,6 @@ static ULONG WINAPI ScriptDisp_Release(IDispatchEx *iface)
if(!ref) {
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++)
release_dynamic_var(This->global_vars[i]);
More information about the wine-cvs
mailing list