Project

General

Profile

Revision 679f4e26

ID679f4e26c19bd71a5a8d4fd563710e07cbf6c3d9
Parent 6ee555a3
Child 18db4dfa, dcf49526

Added by Priya over 3 years ago

Freeing memory we allocate. Yay!

View differences:

scout/libscout/src/BehaviorProcess.cpp
67 67
        {
68 68
            Behavior* b = behavior_list[behavior_num](scoutname, sensors);
69 69
            b->run();
70
            delete b;
70 71
        }
71 72
        else
72 73
        {
......
76 77
        }
77 78

  
78 79
        delete list;
80
        delete sensors;
79 81
    }
80 82

  
81 83
    return 0;

Also available in: Unified diff