Jacek Caban : vbscript: Fixed a leak.
Alexandre Julliard
julliard at winehq.org
Mon Mar 24 15:59:46 CDT 2014
Module: wine
Branch: master
Commit: 7aaf597db12477a1d9d05737742dbed882f49694
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7aaf597db12477a1d9d05737742dbed882f49694
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Mar 24 13:49:33 2014 +0100
vbscript: Fixed a leak.
---
dlls/vbscript/compile.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/vbscript/compile.c b/dlls/vbscript/compile.c
index 609bb66..e1245d6 100644
--- a/dlls/vbscript/compile.c
+++ b/dlls/vbscript/compile.c
@@ -873,8 +873,10 @@ static HRESULT compile_select_statement(compile_ctx_t *ctx, select_statement_t *
if(FAILED(hres))
break;
- if(!emit_catch_jmp(ctx, 0, case_labels[i]))
- return E_OUTOFMEMORY;
+ if(!emit_catch_jmp(ctx, 0, case_labels[i])) {
+ hres = E_OUTOFMEMORY;
+ break;
+ }
}
}
More information about the wine-cvs
mailing list