go.cxx: Fix use of a freed variable
Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
This commit is contained in:
parent
84b06fa21b
commit
11b971f405
1 changed files with 2 additions and 1 deletions
|
|
@ -4176,7 +4176,6 @@ private:
|
||||||
|
|
||||||
Wrapper *dummy = NewWrapper();
|
Wrapper *dummy = NewWrapper();
|
||||||
emit_attach_parmmaps(parms, dummy);
|
emit_attach_parmmaps(parms, dummy);
|
||||||
DelWrapper(dummy);
|
|
||||||
|
|
||||||
Swig_typemap_attach_parms("gotype", parms, NULL);
|
Swig_typemap_attach_parms("gotype", parms, NULL);
|
||||||
Swig_typemap_attach_parms("imtype", parms, NULL);
|
Swig_typemap_attach_parms("imtype", parms, NULL);
|
||||||
|
|
@ -4233,6 +4232,8 @@ private:
|
||||||
Swig_typemap_attach_parms("goin", parms, dummy);
|
Swig_typemap_attach_parms("goin", parms, dummy);
|
||||||
Swig_typemap_attach_parms("goargout", parms, dummy);
|
Swig_typemap_attach_parms("goargout", parms, dummy);
|
||||||
|
|
||||||
|
DelWrapper(dummy);
|
||||||
|
|
||||||
if (!is_ignored) {
|
if (!is_ignored) {
|
||||||
// We use an interface to see if this method is defined in Go.
|
// We use an interface to see if this method is defined in Go.
|
||||||
Printv(f_go_wrappers, "type ", interface_name, " interface {\n", NULL);
|
Printv(f_go_wrappers, "type ", interface_name, " interface {\n", NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue