Bug 1001419 - Use SizeOfExcludingThis for non-heap allocated member variable. r=njn
authorEric Rahm <erahm@mozilla.com>
Tue, 29 Apr 2014 14:47:56 -0700
changeset 181649 e0b5e968c38fa50b8e63423afe8592bb38ec0f2c
parent 181648 977cf6a69034d62d9c992fd7271470f49ac871c7
child 181650 734b0e34e002dc218c64abc4aa50f2d780b2a6d5
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);