[Libreoffice-commits] core.git: vcl/win
Takeshi Abe
tabe at fixedpoint.jp
Wed Oct 14 01:08:20 PDT 2015
vcl/win/source/gdi/salgdi.cxx | 2 +-
vcl/win/source/window/salobj.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit a69a786b91048d69bbb47503e3720de613935e56
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date: Tue Oct 13 18:06:06 2015 +0900
vcl: Free memory by appropriate delete
Change-Id: Id39940563952a6791c63cc5c4621a28401ad5ebe
Reviewed-on: https://gerrit.libreoffice.org/19343
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/win/source/gdi/salgdi.cxx b/vcl/win/source/gdi/salgdi.cxx
index 64bb1fc..5f29820 100644
--- a/vcl/win/source/gdi/salgdi.cxx
+++ b/vcl/win/source/gdi/salgdi.cxx
@@ -659,7 +659,7 @@ WinSalGraphics::~WinSalGraphics()
}
// delete cache data
- delete [] mpStdClipRgnData;
+ delete [] (BYTE*)mpStdClipRgnData;
}
SalGraphicsImpl* WinSalGraphics::GetImpl() const
diff --git a/vcl/win/source/window/salobj.cxx b/vcl/win/source/window/salobj.cxx
index 4877c53..033c798 100644
--- a/vcl/win/source/window/salobj.cxx
+++ b/vcl/win/source/window/salobj.cxx
@@ -568,7 +568,7 @@ WinSalObject::~WinSalObject()
}
// Cache-Daten zerstoeren
- delete mpStdClipRgnData;
+ delete [] (BYTE*)mpStdClipRgnData;
HWND hWndParent = ::GetParent( mhWnd );
More information about the Libreoffice-commits
mailing list