mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 04:00:07 +00:00
memleak : show problem
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include "Stdafx.h"
|
||||
#include "include/cef_v8.h"
|
||||
|
||||
#include "JavascriptPropertyHandler.h"
|
||||
#include "JavascriptMethodWrapper.h"
|
||||
|
||||
using namespace CefSharp::Internals;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CefSharp
|
||||
JavascriptProperty^ _javascriptProperty;
|
||||
int64 _ownerId;
|
||||
IBrowserProcess^ _browserProcess;
|
||||
|
||||
Object^ _javascriptObjectWrapper;
|
||||
internal:
|
||||
MCefRefPtr<CefV8Value> V8Value;
|
||||
|
||||
@@ -34,6 +34,12 @@ namespace CefSharp
|
||||
~JavascriptPropertyWrapper()
|
||||
{
|
||||
V8Value = nullptr;
|
||||
|
||||
if (_javascriptObjectWrapper != nullptr)
|
||||
{
|
||||
delete _javascriptObjectWrapper;
|
||||
_javascriptObjectWrapper = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void Bind();
|
||||
|
||||
Reference in New Issue
Block a user