diff options
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; |
