diff options
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/llmessage/lltemplatemessagereader.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linden/indra/llmessage/lltemplatemessagereader.cpp b/linden/indra/llmessage/lltemplatemessagereader.cpp index a7ca13a..d8904a9 100644 --- a/linden/indra/llmessage/lltemplatemessagereader.cpp +++ b/linden/indra/llmessage/lltemplatemessagereader.cpp | |||
@@ -537,7 +537,11 @@ BOOL LLTemplateMessageReader::decodeData(const U8* buffer, const LLHost& sender | |||
537 | llassert( mReceiveSize >= 0 ); | 537 | llassert( mReceiveSize >= 0 ); |
538 | llassert( mCurrentRMessageTemplate); | 538 | llassert( mCurrentRMessageTemplate); |
539 | llassert( !mCurrentRMessageData ); | 539 | llassert( !mCurrentRMessageData ); |
540 | delete mCurrentRMessageData; // just to make sure | 540 | if (mCurrentRMessageData) { |
541 | // just to make sure | ||
542 | delete mCurrentRMessageData; | ||
543 | mCurrentRMessageData = 0; | ||
544 | } | ||
541 | 545 | ||
542 | // The offset tells us how may bytes to skip after the end of the | 546 | // The offset tells us how may bytes to skip after the end of the |
543 | // message name. | 547 | // message name. |