void myqtt_ctx_unref ( MyQttCtx **  ctx)

Decrease reference count and nullify caller's pointer in the case the count reaches 0.

Parameters
ctxThe context to decrement reference count. In the case 0 is reached the MyQttCtx instance is deallocated and the callers reference is nullified.

References myqtt_ctx_unref2().

Referenced by myqttd_ctx_free().