Guile OUTPUT typemap fix

Fixes 'attempt to free a non-heap object' in some OUTPUT typemaps.
This commit is contained in:
William S Fulton 2013-09-15 10:43:49 +01:00
commit 0431664b18
3 changed files with 21 additions and 1 deletions

View file

@ -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;