diff options
author | Kenneth Heafield <kenlm@kheafield.com> | 2012-02-07 19:21:14 +0400 |
---|---|---|
committer | Kenneth Heafield <kenlm@kheafield.com> | 2012-02-07 19:21:14 +0400 |
commit | 8530d0548ca1c08821ab0c8b0bacaf648fd4f915 (patch) | |
tree | b50912cc58b12bece879751f112ea33e63feb2cd /moses | |
parent | 3ed71773f2784eb4ff5ed4c19b6e1e62092a66ab (diff) |
Don't segfault when complaining that IRSTLM isn't multithreaded
Diffstat (limited to 'moses')
-rw-r--r-- | moses/src/LM/IRST.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/src/LM/IRST.cpp b/moses/src/LM/IRST.cpp index 2131accd6..de29f900e 100644 --- a/moses/src/LM/IRST.cpp +++ b/moses/src/LM/IRST.cpp @@ -50,7 +50,7 @@ LanguageModelIRST::~LanguageModelIRST() #ifndef WIN32 TRACE_ERR( "reset mmap\n"); - m_lmtb->reset_mmap(); + if (m_lmtb) m_lmtb->reset_mmap(); #endif delete m_lmtb; |