#include "ust-events-internal.h"
#include "wait.h"
#include "../libringbuffer/shm.h"
+#include "../libringbuffer/frontend_types.h"
#include "../libcounter/counter.h"
#include "jhash.h"
#include <lttng/ust-abi.h>
cds_list_del(<tng_chan->priv->node);
lttng_destroy_context(lttng_chan->priv->ctx);
- chan = lttng_chan->chan;
- handle = lttng_chan->handle;
+ chan = lttng_chan->priv->rb_chan;
+ handle = chan->handle;
channel_destroy(chan, handle, 0);
free(lttng_chan->parent);
free(lttng_chan->priv);