mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 13:38:43 +02: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)
|
void nm_ap_list_unref (NMAccessPointList *list)
|
||||||
{
|
{
|
||||||
g_return_if_fail (list != NULL);
|
if (!list)
|
||||||
|
return;
|
||||||
|
|
||||||
list->refcount--;
|
list->refcount--;
|
||||||
if (list->refcount <= 0)
|
if (list->refcount <= 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue