diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-12-30 16:14:17 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-12-30 16:14:17 +0000 |
commit | af227aa7653dc726c3caf22fbeeebad38e717dd7 (patch) | |
tree | 95ab8291843e60a0097a549931e91a3212ec1b9a /plugins/mTextControl/src/fancy_rtf.cpp | |
parent | d16a21debd07dbc9cd8b18f285d12129a4a7ff34 (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.cpp | 6 |
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;
|