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 <t...@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 <c...@libreoffice.org> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@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 );
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits