]> git.vomp.tv Git - vompclient-marten.git/commitdiff
Portability
authorChris Tallon <chris@vomp.tv>
Sun, 26 Mar 2006 17:12:38 +0000 (17:12 +0000)
committerChris Tallon <chris@vomp.tv>
Sun, 26 Mar 2006 17:12:38 +0000 (17:12 +0000)
voptions.cc

index 2157ddfea488a7564877f6b557ff10c329d4117b..e564157f5e9a3b4783492a9e83bdc26fddf8085a 100644 (file)
@@ -236,7 +236,7 @@ int VOptions::handleCommand(int command)
 void VOptions::doSave()
 {
   UINT i;
-  int result[numOptions];
+  int* result = new int[numOptions];
 
   for (i = 0; i < numOptions; i++)
   {
@@ -273,6 +273,8 @@ void VOptions::doSave()
     }
   }
 
+  delete[] result;
+
   // Send it to parent for changes to be applied
   Message* m = new Message();
   m->message = Message::CHANGED_OPTIONS;