Skip to content
Permalink
Browse files

Don't keep dangling pointers in QgisApp::mPrintComposers

  • Loading branch information
manisandro authored and nyalldawson committed Mar 2, 2015
1 parent 481b192 commit c2788690e1e482b8c138d9f371900188fb768225
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgisapp.cpp
@@ -5654,7 +5654,7 @@ bool QgisApp::loadComposersFromProject( const QDomDocument& doc )
void QgisApp::deletePrintComposers()
{
QSet<QgsComposer*>::iterator it = mPrintComposers.begin();
for ( ; it != mPrintComposers.end(); ++it )
while ( it != mPrintComposers.end() )
{
emit composerWillBeRemoved(( *it )->view() );

@@ -5670,8 +5670,8 @@ void QgisApp::deletePrintComposers()
{
delete composition;
}
it = mPrintComposers.erase( it );
}
mPrintComposers.clear();
mLastComposerId = 0;
markDirty();
}

0 comments on commit c278869

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