diff options
Diffstat (limited to 'libports/port-ref-weak.c')
-rw-r--r-- | libports/port-ref-weak.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libports/port-ref-weak.c b/libports/port-ref-weak.c index c7d3c690..3f62dfed 100644 --- a/libports/port-ref-weak.c +++ b/libports/port-ref-weak.c @@ -25,9 +25,5 @@ void ports_port_ref_weak (void *portstruct) { struct port_info *pi = portstruct; - - pthread_mutex_lock (&_ports_lock); - assert (pi->refcnt || pi->weakrefcnt); - pi->weakrefcnt++; - pthread_mutex_unlock (&_ports_lock); + refcounts_ref_weak (&pi->refcounts, NULL); } |