object: fix ref counting of objects on destruction

This commit is contained in:
Lennart Poettering 2009-04-19 19:33:15 +02:00
parent ad2a0ab40b
commit eb04d0fda6

View file

@ -62,8 +62,8 @@ void pa_object_unref(pa_object *o) {
if (PA_REFCNT_VALUE(o) == 1) {
pa_assert(o->free);
o->free(o);
} else
pa_assert_se(PA_REFCNT_DEC(o) == 0);
}
}
int pa_object_check_type(const char *type_name) {