summaryrefslogtreecommitdiff
path: root/rotord/src/graph.h
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-09-09 22:21:45 +0100
committerComment <tim@gray.(none)>2013-09-09 22:21:45 +0100
commit695d389eb125cbbd469a8de53616579b18a1bfba (patch)
treedb1f12b6a2a6818d65ff3892e3ef0e489912ab6d /rotord/src/graph.h
parent5606479f9ef49f11a39c52cbad925edbb8709c76 (diff)
parent79af8bf904b9ddb50b11ac231a2db517f1bdd55b (diff)
Merge branch 'master' of eclectronics.org@eclectronics.org:rotor
Diffstat (limited to 'rotord/src/graph.h')
-rw-r--r--rotord/src/graph.h7
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;