diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-19 15:39:01 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-19 21:57:26 +0100 |
commit | b4b0fedaee69fd69aaf1e686f22c2ce3606ef52b (patch) | |
tree | 09be62748c78fc7a5950b84aa94386eb2541855c /ucb | |
parent | 229558c0bf257e4e559cc1b84bd2918b04c68305 (diff) |
cid#1473830 Resource leak
Change-Id: I221468d7030cf3ebf0425ede29e46febe8ffbe05
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112763
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/gio/gio_content.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx index cfce60270c27..ed8eedbadf41 100644 --- a/ucb/source/ucp/gio/gio_content.cxx +++ b/ucb/source/ucp/gio/gio_content.cxx @@ -790,6 +790,8 @@ css::uno::Sequence< css::uno::Any > Content::setPropertyValues( else mpInfo = pNewInfo; + pNewInfo = nullptr; + if (mpFile) //Discard and refetch { g_object_unref(mpFile); @@ -801,6 +803,9 @@ css::uno::Sequence< css::uno::Any > Content::setPropertyValues( notifyPropertiesChange( aChanges ); } + if (pNewInfo) + g_object_unref(pNewInfo); + return aRet; } |