mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
gresource: Port to new GVDB API
This should introduce no functional changes. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
ce86a3aed7
commit
705dd2b9a9
@ -489,7 +489,7 @@ g_resource_unref (GResource *resource)
|
||||
{
|
||||
if (g_atomic_int_dec_and_test (&resource->ref_count))
|
||||
{
|
||||
gvdb_table_unref (resource->table);
|
||||
gvdb_table_free (resource->table);
|
||||
g_free (resource);
|
||||
}
|
||||
}
|
||||
@ -546,13 +546,7 @@ g_resource_new_from_data (GBytes *data,
|
||||
unref_data = TRUE;
|
||||
}
|
||||
|
||||
table = gvdb_table_new_from_data (g_bytes_get_data (data, NULL),
|
||||
g_bytes_get_size (data),
|
||||
TRUE,
|
||||
g_bytes_ref (data),
|
||||
(GvdbRefFunc)g_bytes_ref,
|
||||
(GDestroyNotify)g_bytes_unref,
|
||||
error);
|
||||
table = gvdb_table_new_from_bytes (data, TRUE, error);
|
||||
|
||||
if (unref_data)
|
||||
g_bytes_unref (data);
|
||||
|
Loading…
Reference in New Issue
Block a user