From e150c78cdfbe112bd880107b476ac42e72d4643c Mon Sep 17 00:00:00 2001 From: Noel Date: Sun, 21 Feb 2021 12:34:46 +0200 Subject: loplugin:refcounting in package..sax Change-Id: I83618f54a4117cd81d8626307716129a761e14c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111274 Tested-by: Jenkins Reviewed-by: Noel Grandin --- pyuno/source/module/pyuno_runtime.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pyuno/source/module') diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index 4e44245e2827..91caaffb457c 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -28,6 +28,7 @@ #include #include #include +#include #include @@ -819,7 +820,7 @@ Any Runtime::pyObject2Any ( const PyRef & source, enum ConversionMode mode ) con Sequence interfaces = invokeGetTypes(*this, o); if (interfaces.getLength()) { - Adapter *pAdapter = new Adapter( o, interfaces ); + rtl::Reference pAdapter = new Adapter( o, interfaces ); mappedObject = getImpl()->cargo->xAdapterFactory->createAdapter( pAdapter, interfaces ); -- cgit