> 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.
> I guess so, I was worried the nsAlertsIconLis tener would be destroyed before
> the callback happened but I suppose that's what XPCOM is for...
Right, NS_ADDREF the nsAlertsIconLis tener before you set the callback and NS_RELEASE it in the destroy callback.