Open Bug 772601 Opened 8 years ago Updated 2 years ago
Create a static analysis to determine callers which hold on to an XPCOM interface without addrefing it and call more than one function on it
See bug 772282 as an example of a crash resulting in this. If the caller doesn't AddRef, it cannot be sure that the first function call which takes the interface pointer as an argument won't destroy the object, so the subsequent calls on that are going to be unsafe.
You need to log in before you can comment on or make changes to this bug.