From 62fb1958f6ac4d238e98cfb6b497f5990615450f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 13 Feb 2013 11:50:35 +0000 Subject: make building help not crash a) subStr is not ours to delete, belongs to the OString b) and anyway subStr points to the buffer of the out-of-scope temporary OString Change-Id: I1689c6626c52ae9d94e0cfa5de4235be3c1f3262 --- helpcompiler/source/BasCodeTagger.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'helpcompiler') diff --git a/helpcompiler/source/BasCodeTagger.cxx b/helpcompiler/source/BasCodeTagger.cxx index 585291288342..a984eb742962 100644 --- a/helpcompiler/source/BasCodeTagger.cxx +++ b/helpcompiler/source/BasCodeTagger.cxx @@ -143,17 +143,14 @@ void BasicCodeTagger::tagParagraph( xmlNodePtr paragraph ) m_Highlighter.notifyChange ( 0, 0, &strLine, 1 ); HighlightPortions portions; m_Highlighter.getHighlightPortions( 0, strLine, portions ); - xmlChar* subStr; - xmlChar* typeStr; - xmlNodePtr text; for ( size_t i=0; i