Skip to content

Commit

Permalink
fixed two minor memory leaks (#1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke authored and wjwwood committed Oct 29, 2018
1 parent 4b6c0f4 commit badefac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/rviz/visualization_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ void VisualizationFrame::initToolbars()
toolbar_->addAction( add_tool_action_ );
connect( add_tool_action_, SIGNAL( triggered() ), this, SLOT( openNewToolDialog() ));

remove_tool_menu_ = new QMenu();
remove_tool_menu_ = new QMenu(toolbar_);
QToolButton* remove_tool_button = new QToolButton();
remove_tool_button->setMenu( remove_tool_menu_ );
remove_tool_button->setPopupMode( QToolButton::InstantPopup );
Expand Down
1 change: 1 addition & 0 deletions src/rviz/visualization_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ VisualizationManager::~VisualizationManager()
delete tool_manager_;
delete display_factory_;
delete selection_manager_;
delete view_manager_;

if(ogre_root_)
{
Expand Down

0 comments on commit badefac

Please sign in to comment.