Logo Search packages:      
Sourcecode: einstein version File versions  Download package

void ResVariant::delRef ( void *  data  ) 

Delete referene to data.

Parameters:
data pointer to unpacked data.

Definition at line 363 of file resources.cpp.

Referenced by ResourcesCollection::delRef(), and Resource::delRef().

{
    if ((! refCnt) || (dta != data))
        throw Exception(L"Invalid ResVariant::delRef call");

    refCnt--;
    if (! refCnt) {
        free((char*)data - sizeof(ResVariant*));
        data = NULL;
    }
}


Generated by  Doxygen 1.6.0   Back to index