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.
This commit is contained in:
Benjamin Berg 2020-01-02 18:42:18 +01:00
parent 4db1b84c7a
commit 3c6ba0b678

View file

@ -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);