summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-03-01 18:32:32 +0100
committerFridrich Strba <fridrich@documentfoundation.org>2013-03-07 12:49:35 +0000
commit7146eaf9b3a7ac49604d2400686bc86343468aeb (patch)
tree74a8443e49bc170f0d2752e517747cb5cf72a621 /extensions
parentReplace (Xub)String with OUString in vcl(field) (diff)
downloadcore-7146eaf9b3a7ac49604d2400686bc86343468aeb.tar.gz
core-7146eaf9b3a7ac49604d2400686bc86343468aeb.zip
coverity#984440: Use after free
Change-Id: Ia6d62ce5421d51fe4fc0128f60e9b39ab736276b Reviewed-on: https://gerrit.libreoffice.org/2496 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/plugin/base/xplugin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/source/plugin/base/xplugin.cxx b/extensions/source/plugin/base/xplugin.cxx
index ea77d38fd18c..a456c63e9b96 100644
--- a/extensions/source/plugin/base/xplugin.cxx
+++ b/extensions/source/plugin/base/xplugin.cxx
@@ -444,9 +444,8 @@ void XPlugin_Impl::modelChanged()
m_nProvidingState = PROVIDING_MODEL_UPDATE;
- destroyInstance();
-
m_aDescription = fitDescription( getCreationURL() );
+ destroyInstance();
if( m_aDescription.Mimetype.isEmpty() )
{
m_nProvidingState = PROVIDING_NONE;