Bug 1001419 - Use SizeOfExcludingThis for non-heap allocated member variable. r=njn
☠☠ backed out by bbd77de6be4b ☠ ☠
authorEric Rahm <erahm@mozilla.com>
Tue, 29 Apr 2014 14:47:56 -0700
changeset 181631 090bd7835f8290ff8cfb2495cea2b4ab54114e07
parent 181630 83d914c3431d5e7e9fd168e3a6d8099731709803
child 181632 9f4a5b6678ddcaa7b717865fb2a05d324d8075de
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersnjn
bugs1001419
milestone32.0a1
Bug 1001419 - Use SizeOfExcludingThis for non-heap allocated member variable. r=njn
content/media/MediaResource.h
--- a/content/media/MediaResource.h
+++ b/content/media/MediaResource.h
@@ -417,17 +417,17 @@ public:
                   MallocSizeOf aMallocSizeOf) const MOZ_OVERRIDE
   {
     // Might be useful to track in the future:
     // - mChannel
     // - mURI (possibly owned, looks like just a ref from mChannel)
     // Not owned:
     // - mDecoder
     size_t size = MediaResource::SizeOfExcludingThis(aMallocSizeOf);
-    size += mContentType.SizeOfIncludingThisIfUnshared(aMallocSizeOf);
+    size += mContentType.SizeOfExcludingThisIfUnshared(aMallocSizeOf);
 
     return size;
   }
 
   virtual size_t SizeOfIncludingThis(
                   MallocSizeOf aMallocSizeOf) const MOZ_OVERRIDE
   {
     return aMallocSizeOf(this) + SizeOfExcludingThis(aMallocSizeOf);