summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-19 15:39:01 +0000
committerMichael Stahl <michael.stahl@allotropia.de>2021-03-22 10:53:40 +0100
commitcc289e9a47291111dcfa40a520c41da459fe4edc (patch)
treef17d78a91e7193260be5c111a2cd987e24960be4 /ucb
parente0cab5d85f88ed98e842639502e9015f9978d859 (diff)
cid#1473830 Resource leak
Change-Id: I221468d7030cf3ebf0425ede29e46febe8ffbe05 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112725 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/gio/gio_content.cxx5
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 f67ab4738abc..2b3775a0a82e 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;
}