diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2017-09-08 18:28:29 +0900 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-08 13:27:27 +0200 |
commit | ecc64b73cf554a772a3e2eb987b83b6e8245266f (patch) | |
tree | d5d3243ecf9f2302a85c41088ac95892bcb6dc38 /include | |
parent | fd5ac4c4f5de9ef475156dafcba1b37a56b5cb8d (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 'include')
-rw-r--r-- | include/svx/svddrag.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/svx/svddrag.hxx b/include/svx/svddrag.hxx index 6764e71b0cf7..608d32bfdfbd 100644 --- a/include/svx/svddrag.hxx +++ b/include/svx/svddrag.hxx @@ -39,6 +39,7 @@ class SdrDragMethod; struct SVX_DLLPUBLIC SdrDragStatUserData { + virtual ~SdrDragStatUserData() = 0; }; class SVX_DLLPUBLIC SdrDragStat { |