Ruby module docstring avoid memory leak
This commit is contained in:
parent
c63562744b
commit
2daf3fa237
1 changed files with 4 additions and 2 deletions
|
|
@ -1150,8 +1150,10 @@ public:
|
||||||
Printf(f_header, "#define SWIG_init Init_%s\n", feature);
|
Printf(f_header, "#define SWIG_init Init_%s\n", feature);
|
||||||
Printf(f_header, "#define SWIG_name \"%s\"\n\n", module);
|
Printf(f_header, "#define SWIG_name \"%s\"\n\n", module);
|
||||||
|
|
||||||
if (mod_docstring && Len(mod_docstring)) {
|
if (mod_docstring) {
|
||||||
Printf(f_header, "/*\n Document-module: %s\n\n%s\n*/\n", module, mod_docstring);
|
if (Len(mod_docstring)) {
|
||||||
|
Printf(f_header, "/*\n Document-module: %s\n\n%s\n*/\n", module, mod_docstring);
|
||||||
|
}
|
||||||
Delete(mod_docstring);
|
Delete(mod_docstring);
|
||||||
mod_docstring = NULL;
|
mod_docstring = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue