summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-04-17 10:22:51 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-04-17 15:38:52 +0200
commit6384e5ec123354744059473c4b347df244195dd8 (patch)
tree059024afd658c035dd21a6cf4026b2c45c0f6b01 /vcl
parent858817e158ca3eff5815b8fec67d54a8b63676ca (diff)
presumably Kernel is leaking
Change-Id: I3b6815b3ca7ec94021be9229ae320b86e86f5418 Reviewed-on: https://gerrit.libreoffice.org/53020 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/BitmapScaleConvolutionFilter.hxx4
-rw-r--r--vcl/source/bitmap/BitmapScaleConvolutionFilter.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/inc/BitmapScaleConvolutionFilter.hxx b/vcl/inc/BitmapScaleConvolutionFilter.hxx
index 16830a08a147..6b4642eb6455 100644
--- a/vcl/inc/BitmapScaleConvolutionFilter.hxx
+++ b/vcl/inc/BitmapScaleConvolutionFilter.hxx
@@ -30,7 +30,7 @@ class VCL_DLLPUBLIC BitmapScaleConvolutionFilter : public BitmapFilter
{
protected:
BitmapScaleConvolutionFilter(const double& rScaleX, const double& rScaleY, Kernel* pKernel)
- : mpKernel(pKernel)
+ : mxKernel(pKernel)
, mrScaleX(rScaleX)
, mrScaleY(rScaleY)
{
@@ -39,7 +39,7 @@ protected:
virtual BitmapEx execute(BitmapEx const& rBitmap) override;
private:
- Kernel* mpKernel;
+ std::unique_ptr<Kernel> mxKernel;
double mrScaleX;
double mrScaleY;
};
diff --git a/vcl/source/bitmap/BitmapScaleConvolutionFilter.cxx b/vcl/source/bitmap/BitmapScaleConvolutionFilter.cxx
index 4997812a2cb5..e14f9930e47b 100644
--- a/vcl/source/bitmap/BitmapScaleConvolutionFilter.cxx
+++ b/vcl/source/bitmap/BitmapScaleConvolutionFilter.cxx
@@ -377,7 +377,7 @@ BitmapEx BitmapScaleConvolutionFilter::execute(BitmapEx const& rBitmapEx)
bool bRetval = false;
Bitmap aBitmap(rBitmapEx.GetBitmap());
- bRetval = ImplScaleConvolution(aBitmap, mrScaleX, mrScaleY, *mpKernel);
+ bRetval = ImplScaleConvolution(aBitmap, mrScaleX, mrScaleY, *mxKernel);
if (bRetval)
return BitmapEx(aBitmap);