summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2017-09-08 18:28:29 +0900
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-08 13:27:27 +0200
commitecc64b73cf554a772a3e2eb987b83b6e8245266f (patch)
treed5d3243ecf9f2302a85c41088ac95892bcb6dc38 /svx
parentfd5ac4c4f5de9ef475156dafcba1b37a56b5cb8d (diff)
svx: Make SdrDragStatUserData's dtor pure virtual
to clarify that it is an abstract base class, and to avoid memleak when deleting derived instance as pUser in SdrDragStat::Clear(). Change-Id: I39670841fda1ea3c45698585ce50aec944e0d4ab Reviewed-on: https://gerrit.libreoffice.org/42097 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svddrag.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/svx/source/svdraw/svddrag.cxx b/svx/source/svdraw/svddrag.cxx
index d527c9865d8e..f9d943f009c5 100644
--- a/svx/source/svdraw/svddrag.cxx
+++ b/svx/source/svdraw/svddrag.cxx
@@ -20,6 +20,8 @@
#include <svx/svdview.hxx>
#include <svx/svddrag.hxx>
+SdrDragStatUserData::~SdrDragStatUserData() = default;
+
void SdrDragStat::Clear(bool bLeaveOne)
{
while (!aPnts.empty()) {