Example #1
0
void http_ctx_free(struct http_ctx *ctx)
{
	if (ctx) {
		if (ctx->egress) {
			buffer_queue_free(ctx->egress);
		}
		free(ctx->uri);
		free(ctx);
	}
}
Example #2
0
static int destroy_channel(rh_aout_itf self) {

	struct aout_instance * instance = (struct aout_instance *)self;

	if(instance) {
		if (instance->playerObject)
			(*instance->playerObject)->Destroy(instance->playerObject);

		instance->playerObject = NULL;
		instance->playItf = NULL;
		instance->bufferQueueItf = NULL;

		buffer_queue_free( &instance->bq );
	}
	return 0;
}
Example #3
0
void http_transport_free(struct c2_transport *t)
{
	struct http_ctx *ctx = c2_transport_get_ctx(t);
	buffer_queue_free(ctx->egress);
}