Skip to content
Permalink
Browse files

Minor memory leak fixes

  • Loading branch information
nyalldawson committed Jan 21, 2020
1 parent 7938130 commit 794983b01abd47eaac4409e64e36205315f615a4
Showing with 3 additions and 2 deletions.
  1. +1 −1 src/app/qgisapp.cpp
  2. +2 −1 src/core/qgsapplication.cpp
@@ -3016,7 +3016,7 @@ void QgisApp::refreshProfileMenu()

void QgisApp::createProfileMenu()
{
mConfigMenu = new QMenu();
mConfigMenu = new QMenu( this );
mConfigMenu->setObjectName( "mUserProfileMenu" );

settingsMenu()->insertMenu( settingsMenu()->actions().first(), mConfigMenu );
@@ -339,7 +339,8 @@ void QgsApplication::init( QString profileFolder )
colorSchemeRegistry()->initStyleScheme();

bookmarkManager()->initialize( QgsApplication::qgisSettingsDirPath() + "/bookmarks.xml" );
members()->mStyleModel = new QgsStyleModel( QgsStyle::defaultStyle() );
if ( !members()->mStyleModel )
members()->mStyleModel = new QgsStyleModel( QgsStyle::defaultStyle() );

ABISYM( mInitialized ) = true;
}

0 comments on commit 794983b

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