msvcrt: Destroy exception object if it's no longer used when exiting catch.
commit941e4f7e9ded4db0f2d708f95e2b16c974f2cfdf
authorPiotr Caban <piotr@codeweavers.com>
Tue, 15 Mar 2016 12:41:00 +0000 (15 13:41 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 16 Mar 2016 12:59:41 +0000 (16 21:59 +0900)
treef5145ba301b7f97e0d10a9311ea6825f55f9db09
parent0ef61844b8307c392b4fa0a25b8fcf3ecbff8326
msvcrt: Destroy exception object if it's no longer used when exiting catch.

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@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/msvcrt/except_i386.c