From def9fdb5405b6a2ce5b4b0dd39dac4440a1418e8 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 15 Feb 2012 16:19:59 +0000 Subject: [PATCH] Fix memory leak in CefV8ValueImpl::ExecuteFunctionWithContext (issue #526). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@497 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- libcef/v8_impl.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libcef/v8_impl.cc b/libcef/v8_impl.cc index 171523412..d43c4914b 100644 --- a/libcef/v8_impl.cc +++ b/libcef/v8_impl.cc @@ -1148,6 +1148,9 @@ bool CefV8ValueImpl::ExecuteFunctionWithContext( retval = new CefV8ValueImpl(func_rv); } + if (argv) + delete [] argv; + return true; }