Ignore:
Timestamp:
Jun 11, 2001, 4:37:46 PM (24 years ago)
Author:
sandervl
Message:

Reference count bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/gen_object.cpp

    r5951 r5964  
    1 /* $Id: gen_object.cpp,v 1.10 2001-06-10 12:05:38 sandervl Exp $ */
     1/* $Id: gen_object.cpp,v 1.11 2001-06-11 14:37:46 sandervl Exp $ */
    22/*
    33 * Generic Object Class for OS/2
     
    9191LONG GenericObject::addRef()
    9292{
    93 ////  dprintf(("addRef %x -> refcount %x", this, refCount));
     93  dprintf2(("addRef %x -> refcount %x", this, refCount+1));
    9494  return InterlockedIncrement(&refCount);
    9595}
     
    9999LONG GenericObject::release()
    100100{
    101 ////  dprintf(("release %x -> refcount %x", this, refCount));
     101  dprintf2(("release %x -> refcount %x", this, refCount-1));
    102102#ifdef DEBUG
    103103  if(refCount-1 < 0) {
     
    106106#endif
    107107  if(InterlockedDecrement(&refCount) == 0 && fDeletePending) {
     108      dprintf2(("marked for deletion -> delete now"));
    108109      delete this;
    109110      return 0;
Note: See TracChangeset for help on using the changeset viewer.