diff options
| -rw-r--r-- | swig/Lasso.i | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/swig/Lasso.i b/swig/Lasso.i index f66a7f2a..50a0e38a 100644 --- a/swig/Lasso.i +++ b/swig/Lasso.i @@ -109,6 +109,13 @@ #define %nonewobject %feature("new","") +/* + * In Windows, function free() segfaults when used for strings allocated + * using Glib. + */ + +%typemap(newfree) char * "g_free($1);"; + /*********************************************************************** * Python Tuning |
