Fix memory leak in R shared_ptr wrappers

Fix leak when a cast up a class inheritance chain is
required.

Adds implementation of SWIG_ConvertPtrAndOwn for R.

Closes #2386
This commit is contained in:
William S Fulton 2022-10-26 22:44:13 +01:00
commit 9e7610f972
4 changed files with 36 additions and 22 deletions

View file

@ -7,3 +7,7 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
Version 4.2.0 (in progress)
===========================
2022-10-26: wsfulton
[R] #2386 Fix memory leak in R shared_ptr wrappers.
Fix leak when a cast up a class inheritance chain is required.