Skip to content
Permalink
Browse files

Fix leak in QgsComposer

  • Loading branch information
nyalldawson committed Aug 28, 2015
1 parent a8f85fb commit 95816f589f37b26e08f8adc520c96da0a9d641e4
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/app/composer/qgscomposer.cpp
@@ -1485,6 +1485,7 @@ void QgsComposer::setComposition( QgsComposition* composition )

deleteItemWidgets();

delete mComposition;
mComposition = composition;

connectCompositionSlots();
@@ -3251,6 +3252,9 @@ void QgsComposer::readXML( const QDomElement& composerElem, const QDomDocument&
QgsCompositionWidget* oldCompositionWidget = qobject_cast<QgsCompositionWidget *>( mGeneralDock->widget() );
delete oldCompositionWidget;

deleteItemWidgets();
delete mComposition;

createComposerView();

//read composition settings

0 comments on commit 95816f5

Please sign in to comment.
You can’t perform that action at this time.