[PATCH 2/4] msvcrt: Destroy exception object if it's no longer used when exiting catch
Piotr Caban
piotr at codeweavers.com
Tue Mar 15 07:41:00 CDT 2016
Thrown object was incorrectly freed in following situation:
try {
throw obj;
} catch(object &obj) {
try {
throw;
} catch(...) {}
//use object here
}
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
---
dlls/msvcrt/except_i386.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-msvcrt-Destroy-exception-object-if-it-s-no-longer-used.txt
Type: text/x-patch
Size: 1930 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20160315/cadce1fe/attachment.bin>
More information about the wine-patches
mailing list