Don't complain on unref of NULL list

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@415 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2005-02-07 22:35:07 +00:00
parent 1fdb6e993d
commit ed56f4af19

View file

@ -100,7 +100,8 @@ static void nm_ap_list_element_free (void *element, void *user_data)
*/
void nm_ap_list_unref (NMAccessPointList *list)
{
g_return_if_fail (list != NULL);
if (!list)
return;
list->refcount--;
if (list->refcount <= 0)