Skip to content

Commit

Permalink
Fixed potential memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Skaleee committed Mar 7, 2024
1 parent 23feb02 commit 50aef44
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugins/gui/src/grouping/grouping_manager_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,14 @@ namespace hal
layout->addWidget(closeButton);

dialog.exec();

delete colorRectangle;
delete closeButton;
delete selectionTreeView;
delete selectionTreeProxyModel;
delete selectionTreeModel;
delete hlay;
delete layout;
}

void GroupingManagerWidget::handleDeleteGroupingClicked()
Expand Down

0 comments on commit 50aef44

Please sign in to comment.