summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-28 17:05:40 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-28 22:23:49 +0200
commitea0cf4f980e03ad27583453c6088c465c32b6eae (patch)
tree34152f740bc95eb0a22269ae9a76ffea906dc9d6 /svtools
parentb616f7eeb67cd1833d2b86f6ef4a76c4e8f1ceb2 (diff)
ofz: fix leak
Change-Id: Ib31b3bfabaaaeb9b71635dadd099874d9c972fd0 Reviewed-on: https://gerrit.libreoffice.org/37080 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/embedhlp.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx
index fbebecfdf027..ec7eb7a87146 100644
--- a/svtools/source/misc/embedhlp.cxx
+++ b/svtools/source/misc/embedhlp.cxx
@@ -347,17 +347,16 @@ void EmbeddedObjectRef::Clear()
}
}
}
+ }
- if ( mpImpl->xListener )
- {
- mpImpl->xListener->pObject = nullptr;
- mpImpl->xListener->release();
- mpImpl->xListener = nullptr;
- }
-
- mpImpl->mxObj = nullptr;
+ if (mpImpl->xListener)
+ {
+ mpImpl->xListener->pObject = nullptr;
+ mpImpl->xListener->release();
+ mpImpl->xListener = nullptr;
}
+ mpImpl->mxObj = nullptr;
mpImpl->pContainer = nullptr;
mpImpl->bIsLocked = false;
mpImpl->bNeedUpdate = false;