From 3c6ba0b6785c863a8ad97598968d185172c51bba Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Thu, 2 Jan 2020 18:42:18 +0100 Subject: [PATCH] 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);