mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Remove old approach for debugging leaked wrapper object references (issue #2593)
This commit is contained in:
@@ -67,23 +67,9 @@ class CefCToCppScoped : public BaseName {
|
||||
// ~CefCToCppScoped will be called first followed by this method.
|
||||
static void operator delete(void* ptr);
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
// Simple tracking of allocated objects.
|
||||
static base::AtomicRefCount DebugObjCt;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
CefCToCppScoped() {
|
||||
#if DCHECK_IS_ON()
|
||||
base::AtomicRefCountInc(&DebugObjCt);
|
||||
#endif
|
||||
}
|
||||
|
||||
virtual ~CefCToCppScoped() {
|
||||
#if DCHECK_IS_ON()
|
||||
base::AtomicRefCountDec(&DebugObjCt);
|
||||
#endif
|
||||
}
|
||||
CefCToCppScoped() {}
|
||||
virtual ~CefCToCppScoped() {}
|
||||
|
||||
// If returning the structure across the DLL boundary use Unwrap() instead.
|
||||
StructName* GetStruct() const {
|
||||
|
Reference in New Issue
Block a user