libglnx porting: gs_free -> g_autofree
There were surprisingly few uses left.
This commit is contained in:
1 parent
ac4c298061
commit
684029daa3
5 files changed
+16
-16
No files matched your search
@@ -31,24 +31,24 @@ static void
|
||||
test_ostree_parse_delta_name (void)
|
||||
{
|
||||
{
|
||||
gs_free char *from;
|
||||
gs_free char *to;
|
||||
g_autofree char *from;
|
||||
g_autofree char *to;
|
||||
_ostree_parse_delta_name ("30d13b73cfe1e6988ffc345eac905f82a18def8ef1f0666fc392019e9eac388d", &from, &to);
|
||||
g_assert_cmpstr (to, ==, "30d13b73cfe1e6988ffc345eac905f82a18def8ef1f0666fc392019e9eac388d");
|
||||
g_assert_null (from);
|
||||
}
|
||||
|
||||
{
|
||||
gs_free char *from;
|
||||
gs_free char *to;
|
||||
g_autofree char *from;
|
||||
g_autofree char *to;
|
||||
_ostree_parse_delta_name ("30d13b73cfe1e6988ffc345eac905f82a18def8ef1f0666fc392019e9eac388d-5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03", &from, &to);
|
||||
g_assert_cmpstr (from, ==, "30d13b73cfe1e6988ffc345eac905f82a18def8ef1f0666fc392019e9eac388d");
|
||||
g_assert_cmpstr (to, ==, "5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03");
|
||||
}
|
||||
|
||||
{
|
||||
gs_free char *from;
|
||||
gs_free char *to;
|
||||
g_autofree char *from;
|
||||
g_autofree char *to;
|
||||
_ostree_parse_delta_name ("", &from, &to);
|
||||
g_assert_null (from);
|
||||
g_assert_null (to);
|
||||
|
||||
Reference in new issue
Block a user