oops, didn't mean to send this as private mail. resending to mailing list.
Srinivasa Raghavan wrote:
while invoking the method as said above i am getting memory issue.
I.e. you are deleting memory twice, right?
My query is whether it is appropriate to us nsCOMPtr here ?
Yes, an nsCOMPtr is appropriate here. But your implementation of GetWindowForNode is wrong:
*window=domWindow;
You need to addref the out parameter: NS_ADDREF(*window);
_______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
