flatpak_oci_registry_store_json: Don't leak GBytes

tingping/wmclass
Alexander Larsson 2016-12-19 11:16:27 +01:00
parent 7267669ee1
commit 507e4dd355
1 changed files with 1 additions and 1 deletions

View File

@ -734,7 +734,7 @@ flatpak_oci_registry_store_json (FlatpakOciRegistry *self,
GCancellable *cancellable,
GError **error)
{
GBytes *bytes = flatpak_json_to_bytes (json);
g_autoptr(GBytes) bytes = flatpak_json_to_bytes (json);
g_autofree char *digest = NULL;
digest = flatpak_oci_registry_store_blob (self, bytes, cancellable, error);