Commit cc82349b authored by Arnaud Blanchard's avatar Arnaud Blanchard

Do not use ~blc_channel uin remove

parent 399839ea
......@@ -475,8 +475,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