mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-17 07:20:48 +03:00
memory leak
This commit is contained in:
parent
974bdd979b
commit
2d252d2dd0
@ -665,6 +665,8 @@ int main(int argc, char** argv)
|
||||
pool.Stop(true); //flush remaining jobs
|
||||
#endif
|
||||
|
||||
delete ioWrapper;
|
||||
|
||||
} catch (const std::exception &e) {
|
||||
std::cerr << "Exception: " << e.what() << std::endl;
|
||||
return EXIT_FAILURE;
|
||||
|
@ -30,6 +30,9 @@ AlignmentInfoCollection::AlignmentInfoCollection()
|
||||
m_emptyAlignmentInfo = Add(pairs);
|
||||
}
|
||||
|
||||
AlignmentInfoCollection::~AlignmentInfoCollection()
|
||||
{}
|
||||
|
||||
const AlignmentInfo &AlignmentInfoCollection::GetEmptyAlignmentInfo() const
|
||||
{
|
||||
return *m_emptyAlignmentInfo;
|
||||
|
@ -55,6 +55,7 @@ class AlignmentInfoCollection
|
||||
|
||||
//! Only a single static variable should be created.
|
||||
AlignmentInfoCollection();
|
||||
~AlignmentInfoCollection();
|
||||
|
||||
static AlignmentInfoCollection s_instance;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user