Christan.

Thank you. NS_Free works fine.

I can not instantiate nsACString . I made an error while pasting the code 
The original code used  nsXPIDLCString. nsACString  was best shot to solve 
the problem, but of course, it did not wokr....

Thanks again.
   Matra


"Christian Biesinger" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> matra wrote:
>> Question: How should I free the returned string. The sample I am looking 
>> at uses nsXPIDLCString, which is not available in SDK:
>>
>> nsACString previous;
>>
>> rv = catman->AddCategoryEntry(, ..... getter_Copies(previous));
>
> If you use getter_Copies, that will free it automatically. (Otherwise, 
> you'd use NS_Free)
>
> I'm surprised that you can instantiate an nsACString though... 


_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to