static VALUE rwire_amq_client_session_destroy(VALUE self) { amq_client_session_t *session = NULL; Data_Get_Struct(self, amq_client_session_t, session); amq_client_session_destroy(&session); return Qnil; }
void free_amq_session_cls( amq_session_cls *obj) { if (obj && obj->session) { amq_client_session_destroy (&(obj->session)); obj->session=0; } if (obj) free(obj); }
inline ~openamq_t () { // Close the channel. amq_client_session_destroy (&session); // Close the connection. amq_client_connection_destroy (&connection); // Uninitialise system. icl_system_terminate (); }