mirror of
https://github.com/rhaleblian/dslibris.git
synced 2025-06-18 16:55:41 -04:00
User array delete
This commit is contained in:
parent
4c5ae292e4
commit
ff62b7f327
@ -235,7 +235,7 @@ u8 Book::Parse(bool fulltext)
|
||||
FILE *fp = fopen(path,"r");
|
||||
if (!fp)
|
||||
{
|
||||
delete(filebuf);
|
||||
delete [] filebuf;
|
||||
rc = 255;
|
||||
return(rc);
|
||||
}
|
||||
@ -248,7 +248,7 @@ u8 Book::Parse(bool fulltext)
|
||||
XML_Parser p = XML_ParserCreate(NULL);
|
||||
if(!p)
|
||||
{
|
||||
delete(filebuf);
|
||||
delete [] filebuf;
|
||||
fclose(fp);
|
||||
rc = 253;
|
||||
return rc;
|
||||
@ -285,7 +285,7 @@ u8 Book::Parse(bool fulltext)
|
||||
|
||||
XML_ParserFree(p);
|
||||
fclose(fp);
|
||||
delete(filebuf);
|
||||
delete [] filebuf;
|
||||
|
||||
return(rc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user