diff options
Diffstat (limited to 'engines/titanic/true_talk/tt_string.cpp')
-rw-r--r-- | engines/titanic/true_talk/tt_string.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/true_talk/tt_string.cpp b/engines/titanic/true_talk/tt_string.cpp index ffe6509e07..2308afa75d 100644 --- a/engines/titanic/true_talk/tt_string.cpp +++ b/engines/titanic/true_talk/tt_string.cpp @@ -54,7 +54,7 @@ TTString::TTString(TTString &str) { } TTString::~TTString() { - if (--_data->_referenceCount == 0) + if (_data && --_data->_referenceCount == 0) delete _data; } |