Cogl.clear_object
Description: Reference for Cogl.clear_object

### Function Macro

# Coglclear_object

#### Declaration [src]

    #define cogl_clear_object (
      object_ptr
    )

#### Description [src]

Clears a reference to a `CoglObject`.

`object_ptr` must not be `NULL`.

If the reference is `NULL` then this function does nothing. Otherwise, the reference count of the object is decreased using `cogl_object_unref()` and the pointer is set to `NULL`.

This function is not directly available to language bindings

#### Parameters

`object_ptr` | `-`
| A pointer to a `CoglObject` reference.