Commit 7d97fbd2 authored by Arnaud Blanchard's avatar Arnaud Blanchard
parents b20a390c cc82349b
......@@ -446,8 +446,16 @@ blc_channel::~blc_channel(){
}
void blc_channel::remove(){
this->~blc_channel();
blc_remove_channel_with_name(name);
if (dims) FREE(dims);
if (data){
SYSTEM_SUCCESS_CHECK(munmap(data, size), 0, "Closing blc_channel '%s'", name);
data=NULL;
}
close(fd);
blc_channel_post_event();
}
void blc_channel::publish(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment