From 5c559cf5ac9dc5361df4d76b39fe875107e4fcda Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Tue, 19 Apr 2016 21:40:21 +0300 Subject: kmscube: fix resource leaks & freeing --- kmscube/cube.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'kmscube/cube.cpp') 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); -- cgit v1.2.3