From dc2bf27dc0f2d4595fb7ee9d225fabf3d64e0e60 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/SWIG@6162 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/csharp/csharp.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/csharp/csharp.swg b/Lib/csharp/csharp.swg index d3fdc1a6a..74a7e2d75 100644 --- a/Lib/csharp/csharp.swg +++ b/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 ""