Skip to content

Commit e01c476

Browse files
committed
fix leak when using global expression context scope
1 parent 48bcca6 commit e01c476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/qgshelp.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ QUrl QgsHelp::helpUrl( const QString& key )
4444
return helpNotFound;
4545
}
4646

47-
QgsExpressionContextScope *scope = QgsExpressionContextUtils::globalScope();
47+
QScopedPointer<QgsExpressionContextScope> scope( QgsExpressionContextUtils::globalScope() );
4848

4949
QUrl helpUrl;
5050
QString helpPath, fullPath;

0 commit comments

Comments
 (0)