Browse Source

nsIWeakReference class changes (implement SizeOfOnlyThis)

toddw 10 years ago
parent
commit
e11c197064
1 changed files with 6 additions and 0 deletions
  1. 6 0
      xpcom/src/PyGWeakReference.cpp

+ 6 - 0
xpcom/src/PyGWeakReference.cpp

@@ -90,3 +90,9 @@ PyXPCOM_GatewayWeakReference::QueryReferent(REFNSIID iid, void * *ret)
 	m_pBase->Release();
 	return nr;
 }
+
+size_t
+PyXPCOM_GatewayWeakReference::SizeOfOnlyThis(mozilla::MallocSizeOf aMallocSizeOf) const
+{
+  return aMallocSizeOf(this);
+}