summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-10-13 23:26:41 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-10-19 11:01:20 +0000
commit743a51b88f049fb4d888e4bb9f3910be4d8e3633 (patch)
treee4e14dff1a8bc94705fa293a7bc99d1d0514f0ce
parentcc5dd79b095925a195f00979e5cefea2dfe78f8f (diff)
downloadflatpak-743a51b88f049fb4d888e4bb9f3910be4d8e3633.tar.gz
transaction: Don't call g_object_ref on a GBytes
This won't go well. Spotted while writing tests. Closes: #2245 Approved by: alexlarsson Closes: #2247 Approved by: alexlarsson
-rw-r--r--common/flatpak-transaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/flatpak-transaction.c b/common/flatpak-transaction.c
index bbcfec2b..40fcd319 100644
--- a/common/flatpak-transaction.c
+++ b/common/flatpak-transaction.c
@@ -164,7 +164,7 @@ bundle_data_new (GFile *file,
data->file = g_object_ref (file);
if (gpg_data)
- data->gpg_data = g_object_ref (gpg_data);
+ data->gpg_data = g_bytes_ref (gpg_data);
return data;
}