Skip to content

Commit

Permalink
fix leak when using global expression context scope
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Jan 10, 2017
1 parent 48bcca6 commit e01c476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgshelp.cpp
Expand Up @@ -44,7 +44,7 @@ QUrl QgsHelp::helpUrl( const QString& key )
return helpNotFound;
}

QgsExpressionContextScope *scope = QgsExpressionContextUtils::globalScope();
QScopedPointer<QgsExpressionContextScope> scope( QgsExpressionContextUtils::globalScope() );

QUrl helpUrl;
QString helpPath, fullPath;
Expand Down

0 comments on commit e01c476

Please sign in to comment.