mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-21 02:35:21 +00:00
319d92fa7d
We were leaking nsIClassInfo objects because a DOM class info getter returned AddRef()ed raw pointers. Most of our dom/ and content/ QueryInterface() implementations knew this and accounted for it, but not all. The leak fix is thus achieved by fixing the method to not call AddRef() on its return value, and fixing the appropriate QueryInterface() macros/implementations. As a bonus, this macro-izes many QueryInterface() implementations in content/ which were fully written out. r=peterv@propagandism.org sr=alecf@flett.org CVS: ----------------------------------------------------------------------