mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-10 13:03:09 +03:00
Ensure refcounts add up
svn path=/trunk/netsurf/; revision=12944
This commit is contained in:
parent
5b23bcae95
commit
170136a4e8
@ -892,6 +892,7 @@ nsurl *nsurl_ref(nsurl *url)
|
||||
void nsurl_unref(nsurl *url)
|
||||
{
|
||||
assert(url != NULL);
|
||||
assert(url->count > 0);
|
||||
|
||||
if (--url->count > 0)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user