mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
fixed memory leak
This commit is contained in:
parent
32314d3532
commit
70fadbef11
@ -147,6 +147,10 @@ TaskListModel::~TaskListModel() {
|
|||||||
ROS_DEBUG_NAMED(LOGNAME, "destroying TaskListModel: %p", this);
|
ROS_DEBUG_NAMED(LOGNAME, "destroying TaskListModel: %p", this);
|
||||||
// inform MetaTaskListModel that we will remove our stuff
|
// inform MetaTaskListModel that we will remove our stuff
|
||||||
removeRows(0, rowCount());
|
removeRows(0, rowCount());
|
||||||
|
// free RemoteTaskModels
|
||||||
|
for (auto& pair : remote_tasks_) {
|
||||||
|
if (pair.second) delete pair.second;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TaskListModel::setScene(const planning_scene::PlanningSceneConstPtr &scene)
|
void TaskListModel::setScene(const planning_scene::PlanningSceneConstPtr &scene)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user