Bug 673052: Fix JS shell option parser argument leak. (r=dvander)

This commit is contained in:
Chris Leary 2011-07-21 12:14:20 -07:00
parent 3df774710d
commit 51af6b197d

View File

@ -463,6 +463,8 @@ OptionParser::~OptionParser()
{ {
for (Option **it = options.begin(), **end = options.end(); it != end; ++it) for (Option **it = options.begin(), **end = options.end(); it != end; ++it)
Foreground::delete_<Option>(*it); Foreground::delete_<Option>(*it);
for (Option **it = arguments.begin(), **end = arguments.end(); it != end; ++it)
Foreground::delete_<Option>(*it);
} }
Option * Option *