Commit fdb9918d authored by Marek Vavrusa's avatar Marek Vavrusa

Minor fixes.

parent d1fc8697
......@@ -21,7 +21,7 @@ void ref_release(ref_t *p)
{
if (p) {
int rc = __sync_sub_and_fetch(&p->count, 1);
if (rc == 0) {
if (rc == 0 && p->dtor) {
p->dtor(p);
}
}
......
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