Hi, I'm learning XPCOM/C++ while building my first firefox extension. I'm trying to implement nsWeakPtr as a member variable of my class. A snippet is located here: http://pastebin.mozilla.org/457 (23 lines of c++) What i want to know is if i'm correctly using ADDREF. And if my code won't leak. I would really like to know if i'm on the right track here. Any comments are more than welcome.
Gr. Dennis PS. In my sample it should be "public nsSupportsWeakReference" where it says "public nsISupportsWeakReference" _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
