Blob Blame History Raw
From 7de7368d545c007abf8c3dfc3fb5a78e64d5b31e Mon Sep 17 00:00:00 2001
From: Benjamin Berg <bberg@redhat.com>
Date: Thu, 2 Jan 2020 18:42:18 +0100
Subject: [PATCH 163/181] storage: Do not free image data owned by FpPrint

The data returned by fp_print_get_image is owned by the FpPrint and
should not be free'ed.
---
 examples/storage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/storage.c b/examples/storage.c
index 14a6432..0ab4946 100644
--- a/examples/storage.c
+++ b/examples/storage.c
@@ -218,7 +218,7 @@ save_image_to_pgm (FpImage *img, const char *path)
 gboolean
 print_image_save (FpPrint *print, const char *path)
 {
-  g_autoptr(FpImage) img = NULL;
+  FpImage *img = NULL;
 
   g_return_val_if_fail (FP_IS_PRINT (print), FALSE);
   g_return_val_if_fail (path != NULL, FALSE);
-- 
2.24.1