BUG: The operator precedence is [] followed by *. Calling this method was causing out of array index segfaults bounds

This commit is contained in:
Karthik Krishnan 2006-06-25 15:18:49 -04:00
parent 75b974eaf9
commit 7890524cd9
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ void CommandLineArguments::DeleteRemainingArguments(int argc, char*** argv)
int cc; int cc;
for ( cc = 0; cc < argc; ++ cc ) for ( cc = 0; cc < argc; ++ cc )
{ {
delete [] *argv[cc]; delete [] (*argv)[cc];
} }
delete [] *argv; delete [] *argv;
} }