mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Correctly set parent for main annotation layer to avoid leak
This commit is contained in:
parent
d090077ba6
commit
8ece6edbbe
@ -435,6 +435,7 @@ QgsProject::QgsProject( QObject *parent )
|
||||
Q_NOWARN_DEPRECATED_POP
|
||||
|
||||
mMainAnnotationLayer = new QgsAnnotationLayer( QObject::tr( "Annotations" ), QgsAnnotationLayer::LayerOptions( mTransformContext ) );
|
||||
mMainAnnotationLayer->setParent( this );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user