Fix mismatching allocation and deallocation

Fixes ticket #10374

Signed-off-by: Philippe Saint-Pierre <[email protected]>
This commit is contained in:
Murai Takashi
2014-03-08 20:29:53 -05:00
committed by Philippe Saint-Pierre
parent 119bf0013c
commit 982b4e9809
@@ -210,7 +210,7 @@ CLuceneWriteDataBase::_RemoveDocuments(std::vector<entry_ref>& docs)
break;
}
}
delete wPath;
delete[] wPath;
if (!status)
break;
@@ -296,6 +296,6 @@ CLuceneWriteDataBase::_IndexDocument(const entry_ref& ref)
if (!status)
delete document;
delete wPath;
delete[] wPath;
return status;
}