Skip to content

Update deconstructors to properly delete pointers when needed #49

@NathanDuPont

Description

@NathanDuPont

Specifically, nodes should delete any member variables that were created internally with a "new" keyword, and subsystems (such as IntakeNode and ConveyorNode) should NOT delete nodes that are passed in.

Nodes such as MotorNode, ConveyorNode, IntakeNode, etc. should NOT be deleted, as they are created in main.cpp. Anything created internal to one of these nodes using the new keyword SHOULD be deleted after the node is done (in the deconstructor)

  • Check each of the nodes to make sure that they delete anything created with the new keyword inside of them
  • Make sure none of the node structures (ConveyorNode, IntakeNode, etc.) don't delete other nodes

Metadata

Metadata

Assignees

Labels

2This issue is good for beginners and will have some slight challengesRobot Software TeamTeam responsible for robot code updatesenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions