1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Use the propper array delete operator

This commit is contained in:
Martin Tůma 2020-11-11 18:47:34 +01:00
parent 609202fe57
commit fa03ecd419

View File

@ -60,7 +60,7 @@ static QString capitalized(const QString &str)
LBLFile::~LBLFile()
{
delete _huffmanText;
delete _table;
delete[] _table;
}
bool LBLFile::load(Handle &hdl, const RGNFile *rgn, Handle &rgnHdl)
@ -114,7 +114,7 @@ bool LBLFile::load(Handle &hdl, const RGNFile *rgn, Handle &rgnHdl)
void LBLFile::clear()
{
delete _huffmanText;
delete _table;
delete[] _table;
_huffmanText = 0;
_table = 0;
}