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