Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/moses
diff options
context:
space:
mode:
authorKenneth Heafield <kenlm@kheafield.com>2012-02-07 19:21:14 +0400
committerKenneth Heafield <kenlm@kheafield.com>2012-02-07 19:21:14 +0400
commit8530d0548ca1c08821ab0c8b0bacaf648fd4f915 (patch)
treeb50912cc58b12bece879751f112ea33e63feb2cd /moses
parent3ed71773f2784eb4ff5ed4c19b6e1e62092a66ab (diff)
Don't segfault when complaining that IRSTLM isn't multithreaded
Diffstat (limited to 'moses')
-rw-r--r--moses/src/LM/IRST.cpp2
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;