diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-04-19 21:40:21 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-04-19 21:40:21 +0300 |
commit | 5c559cf5ac9dc5361df4d76b39fe875107e4fcda (patch) | |
tree | ec3345b5589d6cd48f2f94ccfffbe79c45492103 /kmscube/cube.cpp | |
parent | 85797e7acf5f4322dc715f71e473f026ebbbc837 (diff) |
kmscube: fix resource leaks & freeing
Diffstat (limited to 'kmscube/cube.cpp')
-rw-r--r-- | kmscube/cube.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kmscube/cube.cpp b/kmscube/cube.cpp index eb2f613..42e05be 100644 --- a/kmscube/cube.cpp +++ b/kmscube/cube.cpp @@ -33,6 +33,7 @@ using namespace std; bool s_verbose; bool s_fullscreen; +unsigned s_num_frames; int main(int argc, char *argv[]) { @@ -47,6 +48,11 @@ int main(int argc, char *argv[]) { s_fullscreen = true; }), + Option("n|numframes=", + [&](string s) + { + s_num_frames = stoi(s); + }), }; optionset.parse(argc, argv); |