Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATImage::ReleaseImage
CATResult CATImage::ReleaseImage ( CATImage *&  image  )  [static]

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.

Parameters:
image - pointer to image to release. Is set to NULL if last reference was deleted.
Returns:
CATResult result code
See also:
CATImage::CreateImage()

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().


Generated on Mon Feb 11 04:10:33 2008 for Game Accessibility Suite by doxygen 1.5.4