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

View File

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

View File

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