19 wxLogError(wxT(
"RefObject::~RefObject: object still have references. refCount=%i"), refCount);
32 wxLogError(wxT(
"RefObject::Unref: refCount < 0"));
45 #define SAFE_UNREF(ptr) do { \ 48 if (ptr->RefCount() <= 0) { \ 55 #define SAFE_REPLACE_UNREF(dst, src) do { \ 58 ((RefObject *)src)->AddRef(); \ 62 #define SAFE_UNREF_ELEMENTS(arrPtr, arrSize) do { \ 63 if (arrPtr != NULL) { \ 64 for (int n = 0; n < arrSize; n++) { \ 65 SAFE_UNREF(arrPtr[n]); \ Object with reference counter.