From: Chris Tallon Date: Sun, 26 Mar 2006 17:12:38 +0000 (+0000) Subject: Portability X-Git-Tag: r0-2-2b~43 X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=2e5079a8070872ce2c3ada7c14a79984a86a8165;p=vompclient.git Portability --- diff --git a/voptions.cc b/voptions.cc index 2157ddf..e564157 100644 --- a/voptions.cc +++ b/voptions.cc @@ -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;