memory leak fix for a test method
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-cherylfoil@10781 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
293747e8c5
commit
d08245c7f9
1 changed files with 4 additions and 7 deletions
|
|
@ -1,17 +1,11 @@
|
|||
|
||||
|
||||
#include "DoxygenParser.h"
|
||||
#include "DoxygenTranslator.h"
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <list>
|
||||
#include "DoxygenEntity.h"
|
||||
#include "TokenList.h"
|
||||
#include "JavaDocConverter.h"
|
||||
|
||||
|
||||
DoxygenParser doxyParse;
|
||||
JavaDocConverter jDC;
|
||||
|
||||
|
|
@ -65,7 +59,10 @@ int testCommands(){
|
|||
cout << "---ORIGINAL DOXYGEN--- " << endl << exampleArray[i] << endl;
|
||||
char *nonConstString = (char *)malloc(exampleArray[i].length()+1);
|
||||
strcpy(nonConstString, exampleArray[i].c_str());
|
||||
dT.convert(nonConstString, "JAVADOC");
|
||||
char * result = dT.convert(nonConstString, "JAVADOC");
|
||||
free(nonConstString);
|
||||
free(result);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue