diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-21 12:34:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-21 19:00:26 +0100 |
commit | e150c78cdfbe112bd880107b476ac42e72d4643c (patch) | |
tree | 8f67a46bd60ee89d28d485f0ada90ab7871566cc /pyuno/source/module | |
parent | bb8fb3237c9d1b9516f5803d476c1db09570c2dc (diff) |
loplugin:refcounting in package..sax
Change-Id: I83618f54a4117cd81d8626307716129a761e14c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111274
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'pyuno/source/module')
-rw-r--r-- | pyuno/source/module/pyuno_runtime.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 <osl/process.h> #include <rtl/ustrbuf.hxx> #include <rtl/bootstrap.hxx> +#include <rtl/ref.hxx> #include <typelib/typedescription.hxx> @@ -819,7 +820,7 @@ Any Runtime::pyObject2Any ( const PyRef & source, enum ConversionMode mode ) con Sequence<Type> interfaces = invokeGetTypes(*this, o); if (interfaces.getLength()) { - Adapter *pAdapter = new Adapter( o, interfaces ); + rtl::Reference<Adapter> pAdapter = new Adapter( o, interfaces ); mappedObject = getImpl()->cargo->xAdapterFactory->createAdapter( pAdapter, interfaces ); |