vcl/unx/gtk3/gtkinst.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit d6c23065efd223ae7041c8706f5106959057cd4c Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Thu May 27 13:40:57 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Thu May 27 14:58:44 2021 +0200 no need to allocate this on the heap Change-Id: Ief47dc18f858d4f90a537622c06f3df8e9f72fff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116249 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index 4759c0c631f3..3261cec30275 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -3911,7 +3911,7 @@ namespace if (!sStock.isEmpty()) return load_icon_by_name(sStock); - std::unique_ptr<SvMemoryStream> xMemStm(new SvMemoryStream); + SvMemoryStream aMemStm; css::uno::Sequence<css::beans::PropertyValue> aFilterData(1); aFilterData[0].Name = "Compression"; @@ -3919,9 +3919,9 @@ namespace aFilterData[0].Value <<= sal_Int32(1); vcl::PNGWriter aWriter(aImage.GetBitmapEx(), &aFilterData); - aWriter.Write(*xMemStm); + aWriter.Write(aMemStm); - return load_icon_from_stream(*xMemStm); + return load_icon_from_stream(aMemStm); } GdkPixbuf* getPixbuf(const VirtualDevice& rDevice) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits