Skip to content
Permalink
Browse files

Don't keep dangling pointers in QgisApp::mPrintComposers

  • Loading branch information
manisandro committed Mar 2, 2015
1 parent 74ac7f0 commit 88e1d7afde8be510c42e6b5f0939f04e92042205
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgisapp.cpp
@@ -5667,7 +5667,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() );

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

0 comments on commit 88e1d7a

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