Skip to content
Snippets Groups Projects
Commit fdb9918d authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Minor fixes.

parent d1fc8697
Branches
Tags
No related merge requests found
......@@ -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);
}
}
......
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