mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-01 19:40:44 +01:00
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:
parent
1fdb6e993d
commit
ed56f4af19
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue