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:
parent
b1dc3eb11a
commit
df054d70cf
@ -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;
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user