summaryrefslogtreecommitdiff
path: root/plugins/mTextControl/src/fancy_rtf.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-12-30 16:14:17 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-12-30 16:14:17 +0000
commitaf227aa7653dc726c3caf22fbeeebad38e717dd7 (patch)
tree95ab8291843e60a0097a549931e91a3212ec1b9a /plugins/mTextControl/src/fancy_rtf.cpp
parentd16a21debd07dbc9cd8b18f285d12129a4a7ff34 (diff)
mTextControl: coverity warnings fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@15969 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/mTextControl/src/fancy_rtf.cpp')
-rw-r--r--plugins/mTextControl/src/fancy_rtf.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/mTextControl/src/fancy_rtf.cpp b/plugins/mTextControl/src/fancy_rtf.cpp
index faaef95c72..e94ef784af 100644
--- a/plugins/mTextControl/src/fancy_rtf.cpp
+++ b/plugins/mTextControl/src/fancy_rtf.cpp
@@ -145,7 +145,11 @@ void bbCodeParse(IFormattedTextDraw *ftd)
fBBCode = bbCodes + i;
found = true;
- if (fText) delete[] fText;
+ if (fText)
+ {
+ delete[] fText;
+ fText = nullptr;
+ }
if (bbCodes[i].end) {
TEXTRANGE trg;
trg.chrg.cpMin = fte.chrg.cpMin;