1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00

fixed memory leak

This commit is contained in:
John Hewson 2013-01-23 14:40:28 +00:00
parent b1dc3eb11a
commit df054d70cf
2 changed files with 3 additions and 5 deletions

View File

@ -401,9 +401,7 @@ void ffw_auto_hint(void)
FVAutoInstr(cur_fv);
}
char* ffw_get_version(void)
long ffw_get_version(void)
{
char* str = (char*)malloc(sizeof(char) * 20);
printf("%d", library_version_configuration.library_source_versiondate);
return str;
return library_version_configuration.library_source_versiondate;
}

View File

@ -23,7 +23,7 @@ extern "C" {
// global
void ffw_init(int debug);
void ffw_finalize(void);
char* ffw_get_version(void);
long ffw_get_version(void);
////////////////////////
// load & save