summaryrefslogtreecommitdiff
path: root/starmath/source/caret.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/caret.cxx')
-rw-r--r--starmath/source/caret.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/starmath/source/caret.cxx b/starmath/source/caret.cxx
index 524ae9efa240..9f9e8f6abc51 100644
--- a/starmath/source/caret.cxx
+++ b/starmath/source/caret.cxx
@@ -39,8 +39,7 @@ SmCaretPosGraphEntry* SmCaretPosGraph::Add(SmCaretPosGraphEntry entry){
}
SmCaretPosGraph::~SmCaretPosGraph(){
- if(pNext)
- delete pNext;
+ delete pNext;
pNext = NULL;
}