void myqtt_msg_unref ( MyQttMsg msg)

Allows to decrease the msg reference counting, making an automatic call to myqtt_msg_free if the reference counting reach 0.

Parameters
msgThe msg to be unreferenced (and deallocated if the ref count reach 0).

References myqtt_mutex_lock(), and myqtt_mutex_unlock().

Referenced by myqtt_conn_ping(), myqtt_conn_sub(), and myqtt_conn_unsub().