*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.
- Returning Strings to javascript using XPCOM Patrick McHale
- Re: Returning Strings to javascript using XPCOM Rick Parrish
- Re: Returning Strings to javascript using XPCOM Rick Parrish
- Re: Returning Strings to javascript using XPCOM Neil Hodgson
- Re: Returning Strings to javascript using XPCOM Patrick McHale
- Re: Returning Strings to javascript using XPCOM John Bandhauer
- Re: Returning Strings to javascript using XPCOM Patrick McHale
- Re: Returning Strings to javascript using XPCOM John Bandhauer
- Re: Returning Strings to javascript using XPCOM Patrick McHale
