1
0
mirror of https://gitlab.gnome.org/GNOME/glib.git synced 2025-03-11 02:13:36 +01:00

gio: Replace g_clear_object() with if()…g_object_unref()

As per https://bugzilla.gnome.org/show_bug.cgi?id=113075#c39.
This commit is contained in:
Philip Withnall 2013-11-28 20:41:49 +00:00
parent 49fc6d5b7e
commit 49ea52e6a6
2 changed files with 4 additions and 2 deletions

@ -1330,7 +1330,8 @@ matchlet_match (TreeMatchlet *matchlet,
result = FALSE;
}
g_clear_object (&info);
if (info)
g_object_unref (info);
g_object_unref (file);
}
while (!result);

@ -898,7 +898,8 @@ try_tcp (GDBusServer *server,
out:
g_list_free_full (resolved_addresses, g_object_unref);
g_clear_object (&resolver);
if (resolver)
g_object_unref (resolver);
return ret;
}