Skip to content
Permalink
Browse files

Fix leak in variable editor

  • Loading branch information
nyalldawson committed Aug 28, 2015
1 parent 40f4f20 commit c24192b024b4b78fa15ab73b453a2d33dd61f282
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/gui/qgsvariableeditorwidget.cpp
@@ -88,7 +88,10 @@ QgsVariableEditorWidget::QgsVariableEditorWidget( QWidget *parent )
connect( mTreeWidget, SIGNAL( itemSelectionChanged() ), this, SLOT( selectionChanged() ) );
connect( mTreeWidget, SIGNAL( scopeChanged() ), this, SIGNAL( scopeChanged() ) );

setContext( new QgsExpressionContext() );
//setContext clones context
QgsExpressionContext* context = new QgsExpressionContext();
setContext( context );
delete context;
}

QgsVariableEditorWidget::~QgsVariableEditorWidget()

0 comments on commit c24192b

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