Fix a leak in style model

This commit is contained in:
Nyall Dawson 2023-06-09 10:20:27 +10:00
parent e4dbaa77d2
commit 9db101a49b

View File

@ -69,7 +69,7 @@ void QgsCombinedStyleModel::addStyle( QgsStyle *style )
addSourceModel( titleModel );
mTitleModels.insert( style, titleModel );
QgsStyleModel *styleModel = new QgsStyleModel( style );
QgsStyleModel *styleModel = new QgsStyleModel( style, this );
for ( QSize size : std::as_const( mAdditionalSizes ) )
{