Comment 36 for bug 501393

Revision history for this message
In , Roc-ocallahan (roc-ocallahan) wrote :

> I guess so, I was worried the nsAlertsIconListener would be destroyed before
> the callback happened but I suppose that's what XPCOM is for...

Right, NS_ADDREF the nsAlertsIconListener before you set the callback and NS_RELEASE it in the destroy callback.