Share via


CMediaSample::Release (Compact 2013)

3/26/2014

Decrements the reference count for the calling interface on an object.

If the reference count on the object falls to zero, the object is freed from memory.

Syntax

ULONG Release(void);

Parameters

None.

Return Value

Returns the resulting value of the reference count, which is used for diagnostic/testing purposes only.

If you need to know that resources have been freed, use an interface with higher-level semantics.

Remarks

This member function implements the IUnknown::Release method.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CMediaSample Class