diff options
author | Olly Betts <olly@survex.com> | 2022-10-13 18:27:48 +1300 |
---|---|---|
committer | Olly Betts <ojwbetts@gmail.com> | 2022-10-14 14:44:19 +1300 |
commit | 9ab9c716239d2855bdd6c0771e2e980c0767fb57 (patch) | |
tree | d7cba30e8043b14c866cde5b51e7623b27aabdc0 /CHANGES.current | |
parent | 3dd7e93c77c0685e043da92d135a22b39a350484 (diff) | |
download | swig-9ab9c716239d2855bdd6c0771e2e980c0767fb57.tar.gz |
[lua] Run destructors of local C++ objects on SWIG_fail
Arrange that destructors of local C++ objects in the wrapper function
get run on SWIG_fail (which calls lua_error() which calls longjmp()).
We achieve this by putting almost everything in the function in its
own block, and end that right before lua_error() at which point those
destructors will get called.
Diffstat (limited to 'CHANGES.current')
-rw-r--r-- | CHANGES.current | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CHANGES.current b/CHANGES.current index d0246156b..e10a46072 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -7,6 +7,11 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/ Version 4.1.0 (in progress) =========================== +2022-10-14: olly + [Lua] Arrange that destructors of local C++ objects in the wrapper + function get run on SWIG_fail (which calls lua_error() which calls + longjmp()). + 2022-10-13: wsfulton [R] Add missing SWIGTYPE *const& typemaps for supporting pointers by const reference. |