MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / WXMPIterator_DecrementRefCount_1

Function WXMPIterator_DecrementRefCount_1

xmpsdk/src/WXMPIterator.cpp:94–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92// -------------------------------------------------------------------------------------------------
93
94void
95WXMPIterator_DecrementRefCount_1 ( XMPIteratorRef iterRef )
96{
97 WXMP_Result * wResult = &void_wResult; // ! Needed to "fool" the EnterWrapper macro.
98 XMP_ENTER_WRAPPER ( "WXMPIterator_DecrementRefCount_1" )
99
100 XMPIterator * thiz = (XMPIterator*)iterRef;
101
102 XMP_Assert ( thiz->clientRefs > 0 );
103 --thiz->clientRefs;
104 if ( thiz->clientRefs <= 0 ) delete ( thiz );
105
106 XMP_EXIT_WRAPPER_NO_THROW
107}
108
109// -------------------------------------------------------------------------------------------------
110

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected