lichao
2021-03-29 c095be83aa9d795023a54ddaccfb6717258561c9
src/msg.cpp
@@ -59,7 +59,7 @@
}
int Msg::Release(SharedMemory &shm) const
int Msg::Release(SharedMemory &shm)
{
    if (IsCounted()) {
        const int n = count_->Dec();
@@ -69,7 +69,9 @@
    }
    // free data
    shm.Dealloc(ptr_);
    ptr_ = 0;
    shm.Delete(count_);
    count_ = 0;
    return 0;
}