Blame SOURCES/0163-storage-Do-not-free-image-data-owned-by-FpPrint.patch

73b847
From 7de7368d545c007abf8c3dfc3fb5a78e64d5b31e Mon Sep 17 00:00:00 2001
73b847
From: Benjamin Berg <bberg@redhat.com>
73b847
Date: Thu, 2 Jan 2020 18:42:18 +0100
73b847
Subject: [PATCH 163/181] storage: Do not free image data owned by FpPrint
73b847
73b847
The data returned by fp_print_get_image is owned by the FpPrint and
73b847
should not be free'ed.
73b847
---
73b847
 examples/storage.c | 2 +-
73b847
 1 file changed, 1 insertion(+), 1 deletion(-)
73b847
73b847
diff --git a/examples/storage.c b/examples/storage.c
73b847
index 14a6432..0ab4946 100644
73b847
--- a/examples/storage.c
73b847
+++ b/examples/storage.c
73b847
@@ -218,7 +218,7 @@ save_image_to_pgm (FpImage *img, const char *path)
73b847
 gboolean
73b847
 print_image_save (FpPrint *print, const char *path)
73b847
 {
73b847
-  g_autoptr(FpImage) img = NULL;
73b847
+  FpImage *img = NULL;
73b847
 
73b847
   g_return_val_if_fail (FP_IS_PRINT (print), FALSE);
73b847
   g_return_val_if_fail (path != NULL, FALSE);
73b847
-- 
73b847
2.24.1
73b847