mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
Fix a mem leak. r=jband
This commit is contained in:
parent
b40b1b9d75
commit
e1b0d2b26c
@ -442,11 +442,11 @@ nsJSIID::FillCache(JSContext *cx, JSObject *obj,
|
||||
nsIXPCScriptable *arbitrary)
|
||||
{
|
||||
nsIInterfaceInfoManager* iim = nsnull;
|
||||
nsIInterfaceInfo* iinfo;
|
||||
nsCOMPtr<nsIInterfaceInfo> iinfo;
|
||||
PRUint16 count;
|
||||
|
||||
if(!(iim = XPTI_GetInterfaceInfoManager()) ||
|
||||
NS_FAILED(iim->GetInfoForIID(mDetails.GetID(), &iinfo)) ||
|
||||
NS_FAILED(iim->GetInfoForIID(mDetails.GetID(), getter_AddRefs(iinfo))) ||
|
||||
!iinfo ||
|
||||
NS_FAILED(iinfo->GetConstantCount(&count)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user