From f6f64410a79b8cebc2a1db3d607e8bc2c85775e1 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 27 Aug 2004 21:49:38 +0000 Subject: [PATCH] Typemap fix for methods that return char *. The CLR would incorrectly delete the memory pointed to by char *. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6162 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/csharp/csharp.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SWIG/Lib/csharp/csharp.swg b/SWIG/Lib/csharp/csharp.swg index d3fdc1a6a..74a7e2d75 100644 --- a/SWIG/Lib/csharp/csharp.swg +++ b/SWIG/Lib/csharp/csharp.swg @@ -127,7 +127,7 @@ /* char * - treat as String */ %typemap(in) char * %{ $1 = $input; %} -%typemap(out) char * %{ $result = $1; %} +%typemap(out) char * %{ $result = SWIG_csharp_string_callback($1); %} %typemap(out) void ""