Fix 16230

Call AddRef for newly created PlugletInsance
r = akhil.arora@sun.com
This commit is contained in:
idk%eng.sun.com 1999-10-12 23:01:44 +00:00
parent 30d63a4c52
commit b039809b7e

View File

@ -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;
}