Update Code generator for extensions.
@@ -1064,8 +1064,9 @@ Func GenMethodCodeCallFunc aList
'",ring_'+ trim(aList[C_FUNC_OUTPUT]) + "_freefunc" +
');' + nl + C_TABS_1 + "}" + nl
else
- cCode += C_TABS_2 + 'RING_API_RETCPOINTER(pValue,"' + trim(aList[C_FUNC_OUTPUT]) +
- '");' + nl + C_TABS_1 + "}" + nl
+ cCode += C_TABS_2 + 'RING_API_RETMANAGEDCPOINTER(pValue,"' + trim(aList[C_FUNC_OUTPUT]) +
+ '",ring_state_free' +
+ ');' + nl + C_TABS_1 + "}" + nl
ok
ok
# Accept int values, when the C function take int * as parameter
