Your function CheckString leaks.
nsDialogParamBlock::GetString returns you a new copy of the string, so you must destroy it after you're finished comparing.
+ // We don't need to create a private copy because the
+ // param lives on lower stack frame.
I think GetString already gave you a private copy.
Your function CheckString leaks. ock::GetString returns you a new copy of the string, so you must destroy it after you're finished comparing.
nsDialogParamBl
+ // We don't need to create a private copy because the
+ // param lives on lower stack frame.
I think GetString already gave you a private copy.