It seems that the print function calls the destructor of the listener
provided automatically.  I cannot find anywhere where I call the
destructor or delete the listener , yet after the print is completed
the destructor gets called automatically.  Is this the intended
behavior and why?

Ex(C++):

// printListener  inherited from nsiWebProgressListener
printListener = new MyListener(); // can be anywhere in code

// somewhere else in code
printing->Print(settings, printListener);

// at some point later after stop status
// printListener destructor is called

Thanks.
_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to