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/PP
diff options
context:
space:
mode:
authorMatthias Huck <huck@i6.informatik.rwth-aachen.de>2014-06-13 21:01:41 +0400
committerMatthias Huck <huck@i6.informatik.rwth-aachen.de>2014-06-13 21:01:41 +0400
commit9b9c182726756b97e3af80a4223da0033c1226c9 (patch)
tree6fe7a672863361b8f818503a79d88389c5c2e9fe /moses/PP
parentc40bf494ac93023c1db1fcd7ceecda390ce9417a (diff)
PhraseProperty destructor
Diffstat (limited to 'moses/PP')
-rw-r--r--moses/PP/PhraseProperty.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/moses/PP/PhraseProperty.h b/moses/PP/PhraseProperty.h
index 36de46033..3835ea33d 100644
--- a/moses/PP/PhraseProperty.h
+++ b/moses/PP/PhraseProperty.h
@@ -11,7 +11,8 @@ namespace Moses
class PhraseProperty
{
public:
- PhraseProperty() {};
+ PhraseProperty() : m_value(NULL) {};
+ ~PhraseProperty() { if ( m_value != NULL ) delete m_value; };
virtual void ProcessValue(const std::string &value) { m_value = new std::string(value); };