diff options
author | Matthias Huck <huck@i6.informatik.rwth-aachen.de> | 2014-06-13 21:01:41 +0400 |
---|---|---|
committer | Matthias Huck <huck@i6.informatik.rwth-aachen.de> | 2014-06-13 21:01:41 +0400 |
commit | 9b9c182726756b97e3af80a4223da0033c1226c9 (patch) | |
tree | 6fe7a672863361b8f818503a79d88389c5c2e9fe /moses/PP | |
parent | c40bf494ac93023c1db1fcd7ceecda390ce9417a (diff) |
PhraseProperty destructor
Diffstat (limited to 'moses/PP')
-rw-r--r-- | moses/PP/PhraseProperty.h | 3 |
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); }; |