Commit e82e2b55 authored by thestig@chromium.org's avatar thestig@chromium.org

Fix the leak of the wrapper created by WrapperClass_Allocate().

Review URL: https://codereview.chromium.org/324033002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277962 0039d316-1c4b-4281-b951-d872f2087c98
parent 01ca3770
......@@ -43,10 +43,11 @@ NPObject* WrapperClass_Allocate(NPP npp, NPClass* unused) {
void WrapperClass_Deallocate(NPObject* np_object) {
PluginObject* plugin_object = PluginObject::FromNPObject(np_object);
if (!plugin_object)
return;
if (plugin_object) {
plugin_object->ppp_class()->Deallocate(plugin_object->ppp_class_data());
delete plugin_object;
}
delete np_object;
}
void WrapperClass_Invalidate(NPObject* object) {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment