Decrements reference count of a context.
Decrement the reference count of a context and free if it goes to 0.
Definition at line 116 of file gphoto2-context.c.
References _GPContext::ref_count.
{ if (!context) return; context->ref_count--; if (!context->ref_count) gp_context_free (context); }