Ensure refcounts add up

svn path=/trunk/netsurf/; revision=12944
This commit is contained in:
John Mark Bell 2011-10-03 22:13:45 +00:00
parent 5b23bcae95
commit 170136a4e8

View File

@ -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;