void msn_transaction_unqueue_cmd(MsnTransaction *trans, MsnCmdProc *cmdproc) { MsnCommand *cmd; if (!cmdproc->servconn->connected) return; purple_debug_info("msn", "unqueueing command.\n"); cmd = trans->pendent_cmd; g_return_if_fail(cmd != NULL); msn_cmdproc_process_cmd(cmdproc, cmd); msn_command_unref(cmd); trans->pendent_cmd = NULL; }
void msn_command_destroy(MsnCommand *cmd) { g_return_if_fail(cmd != NULL); if (cmd->ref_count > 0) { msn_command_unref(cmd); return; } if (cmd->payload != NULL) g_free(cmd->payload); g_free(cmd->command); g_strfreev(cmd->params); g_free(cmd); }