Bug 1028588 - Fix dangerous public destructors in xpcom/ - r=bsmedberg,khuey,nfroyd

This commit is contained in:
Benoit Jacob
2014-06-30 18:11:53 -04:00
parent 2f26b0839d
commit fcd3b40972
39 changed files with 174 additions and 63 deletions

View File

@@ -396,6 +396,8 @@ NS_IMPL_ISUPPORTS(LowEventsReporter, nsIMemoryReporter)
*/
class nsJemallocFreeDirtyPagesRunnable MOZ_FINAL : public nsIRunnable
{
~nsJemallocFreeDirtyPagesRunnable() {}
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIRUNNABLE
@@ -422,6 +424,8 @@ nsJemallocFreeDirtyPagesRunnable::Run()
*/
class nsMemoryPressureWatcher MOZ_FINAL : public nsIObserver
{
~nsMemoryPressureWatcher() {}
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIOBSERVER