*Typo* *warning* ...

> // C++
> char *pStr = NULL;
> nsResult ret = pObj->GetVersion(*pStr);
> // do something with pStr and then ...
> nsMemory::Free(pStr);
> // its caller's job to release the returned string's memory.


Should read as ...

// C++
char *pStr = NULL;
nsResult ret = pObj->GetVersion(&pStr);
// do something with pStr and then ...
nsMemory::Free(pStr);
// its caller's job to release the returned string's memory.


Reply via email to