Skip to content
Permalink
Browse files

Correctly set parent for main annotation layer to avoid leak

  • Loading branch information
nyalldawson committed Sep 3, 2020
1 parent d090077 commit 8ece6edbbe96f3fa46b33d19a0cde03b5de67308
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/qgsproject.cpp
@@ -435,6 +435,7 @@ QgsProject::QgsProject( QObject *parent )
Q_NOWARN_DEPRECATED_POP

mMainAnnotationLayer = new QgsAnnotationLayer( QObject::tr( "Annotations" ), QgsAnnotationLayer::LayerOptions( mTransformContext ) );
mMainAnnotationLayer->setParent( this );
}


0 comments on commit 8ece6ed

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