ReleaseImage decrements the reference count of an image and will free the image if it hits zero. It may also free parent images if the specified image holds the last reference to a parent.
Definition at line 78 of file CATImage.cpp. References CAT_ERR_IMAGE_NULL, CAT_SUCCESS, CATASSERT, CATRESULT, DecRef(), and fRefCount. Referenced by CATControl::CheckImageSize(), DecRef(), CATTab::Draw(), CATLayer::Draw(), CATApp::FlushResourceCache(), CATWindow::ResetBackground(), CATProgress::SetImages(), CATControl::~CATControl(), CATGuiObj::~CATGuiObj(), CATPictureMulti::~CATPictureMulti(), CATProgress::~CATProgress(), CATSlider::~CATSlider(), CATSwitch::~CATSwitch(), CATSwitchMulti::~CATSwitchMulti(), and CATWindow::~CATWindow().
|