Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
(cherry picked from commit 3195c82)
  • Loading branch information
nyalldawson committed Nov 1, 2018
1 parent ad13e5d commit 32f3198
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsbrowserdockwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ void QgsBrowserDockWidget::showProperties()
if ( item->type() == QgsDataItem::Layer || item->type() == QgsDataItem::Directory )
{
QgsBrowserPropertiesDialog *dialog = new QgsBrowserPropertiesDialog( settingsSection(), this );
dialog->setAttribute( Qt::WA_DeleteOnClose );
dialog->setItem( item );
dialog->show();
}
Expand Down

0 comments on commit 32f3198

Please sign in to comment.