diff options
| author | Comment <tim@gray.(none)> | 2013-09-09 22:21:45 +0100 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-09-09 22:21:45 +0100 |
| commit | 695d389eb125cbbd469a8de53616579b18a1bfba (patch) | |
| tree | db1f12b6a2a6818d65ff3892e3ef0e489912ab6d /rotord/src/graph.h | |
| parent | 5606479f9ef49f11a39c52cbad925edbb8709c76 (diff) | |
| parent | 79af8bf904b9ddb50b11ac231a2db517f1bdd55b (diff) | |
Merge branch 'master' of eclectronics.org@eclectronics.org:rotor
Diffstat (limited to 'rotord/src/graph.h')
| -rw-r--r-- | rotord/src/graph.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rotord/src/graph.h b/rotord/src/graph.h index 231d784..4c68eab 100644 --- a/rotord/src/graph.h +++ b/rotord/src/graph.h @@ -24,6 +24,13 @@ namespace Rotor { framerate=25.0f; cancelled=false; }; + ~Graph(){ clear(); }; + void clear(){ + for (auto n: nodes) { + delete n.second; + } + nodes.clear(); + } string uid; //every version of a graph has a UUID, no particular need to actually read its data(?) //?? is it faster than using strings?? string description; |
