summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-03 10:40:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-03 13:09:21 +0100
commit327701f66251dc56933727cf9a9febc79f4dc8c0 (patch)
tree8b1c73245e9f306c78f743c10ab7b9506d14fc52 /starmath
parent9af3b8b4ff2e9e013b77a20775c151a2ec0e978f (diff)
CID#736482 fix leak
Change-Id: I51c1e553339810f7de61c2c4a506482339829b31
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/cursor.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx
index ce86a32a11b9..81b1f597324d 100644
--- a/starmath/source/cursor.cxx
+++ b/starmath/source/cursor.cxx
@@ -1194,8 +1194,10 @@ void SmCursor::Copy(){
}
//Set clipboard
- if(pList->size() > 0)
+ if (pList->size() > 0)
SetClipboard(pList);
+ else
+ delete pList;
}
void SmCursor::Paste() {