Skip to content

Commit

Permalink
Minor memory leak fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 21, 2020
1 parent 7938130 commit 794983b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -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 );
Expand Down
3 changes: 2 additions & 1 deletion src/core/qgsapplication.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 794983b

Please sign in to comment.