Guile OUTPUT typemap fix
Fixes 'attempt to free a non-heap object' in some OUTPUT typemaps.
This commit is contained in:
parent
f01b52c44c
commit
0431664b18
3 changed files with 21 additions and 1 deletions
|
|
@ -1,5 +1,9 @@
|
|||
%module typemap_qualifier_strip
|
||||
|
||||
%typemap(freearg) int *ptr ""
|
||||
%typemap(freearg) int *const ptrConst ""
|
||||
%typemap(freearg) int const* constPtr ""
|
||||
|
||||
%typemap(in) int *ptr {
|
||||
int temp = 1234;
|
||||
$1 = &temp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue