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>
This commit is contained in:
Julien Nabet 2013-03-01 18:32:32 +01:00 committed by Fridrich Strba
parent 3cad6c806e
commit 7146eaf9b3

View file

@ -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;