mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Fix 16230
Call AddRef for newly created PlugletInsance r = akhil.arora@sun.com
This commit is contained in:
parent
30d63a4c52
commit
b039809b7e
@ -42,7 +42,9 @@ nsresult Pluglet::CreatePluginInstance(const char* aPluginMIMEType, void **aResu
|
||||
env->ExceptionDescribe();
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
*aResult = new PlugletInstance(obj);
|
||||
nsISupports * instance = new PlugletInstance(obj);
|
||||
NS_ADDREF(instance);
|
||||
*aResult = instance;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user