msvcrt: Destroy exception object when frame storing it is unwound.
commitf085be3028e86ebc6666d20a4802831bf7b3f3bc
authorPiotr Caban <piotr@codeweavers.com>
Tue, 15 Mar 2016 12:41:20 +0000 (15 13:41 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 16 Mar 2016 12:59:41 +0000 (16 21:59 +0900)
treed000575d20971695bd9dadbadff421aadf8e36e3
parent2d4b48a58d8a4a79eaf922f6b9c0375a38bce9b9
msvcrt: Destroy exception object when frame storing it is unwound.

Thrown object was incorrectly freed in following situation:
try {
     throw obj;
} catch(object &obj) {
     try {
         throw 1;
     } 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