Fix memory leak due to CToCpp argument lists not being deleted (issue #526).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@491 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2012-02-14 17:41:35 +00:00
parent 55b363354f
commit ce0eb1c92b
5 changed files with 35 additions and 1 deletions

View File

@@ -60,6 +60,9 @@ bool CefV8HandlerCToCpp::Execute(const CefString& name,
&retvalStruct,
exception.GetWritableStruct());
// Restore param:arguments; type: refptr_vec_diff_byref_const
if (argumentsList)
delete [] argumentsList;
// Restore param:retval; type: refptr_diff_byref
if (retvalStruct) {
if (retvalStruct != retvalOrig) {