[Libreoffice-commits] core.git: editeng/source
Julien Nabet
serval2412 at yahoo.fr
Fri May 19 06:45:56 UTC 2017
editeng/source/editeng/impedit.cxx | 1 +
editeng/source/editeng/impedit.hxx | 4 ++++
2 files changed, 5 insertions(+)
New commits:
commit ba9b44270b56dfc6c416a55686d855a5b3c3c866
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Thu May 18 23:25:32 2017 +0200
fix gdi resource leak (editeng/impedit)
Change-Id: Ia2d9ad88b5bcc2adf7f28ac7833132c04045d55b
Reviewed-on: https://gerrit.libreoffice.org/37790
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Tested-by: Jenkins <ci at libreoffice.org>
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx
index 86b71d6dba26..10c7e9650fba 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -1765,6 +1765,7 @@ void ImpEditView::dragGestureRecognized(const css::datatransfer::dnd::DragGestur
SolarMutexGuard aVclGuard;
+ delete pDragAndDropInfo;
pDragAndDropInfo = nullptr;
Point aMousePosPixel( rDGE.DragOriginX, rDGE.DragOriginY );
diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx
index bb8f4e894a49..a125a97e34f0 100644
--- a/editeng/source/editeng/impedit.hxx
+++ b/editeng/source/editeng/impedit.hxx
@@ -137,6 +137,10 @@ struct DragAndDropInfo
bHasValidData = false; bUndoAction = false; bOutlinerMode = false;
nSensibleRange = 0; nCursorWidth = 0; pField = nullptr; nOutlinerDropDest = 0; bDragAccepted = false;
}
+ ~DragAndDropInfo()
+ {
+ pBackground.disposeAndClear();
+ }
};
struct ImplIMEInfos
More information about the Libreoffice-commits
mailing list