kmscube: fix resource leaks & freeing
[android/external-libkmsxx.git] / kmscube / cube.cpp
index eb2f6134676a5074b0be9138e7540c1add2dcf83..42e05be410023c88cf9eb061ac4e2c80564418d2 100644 (file)
@@ -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);