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:
parent
4db1b84c7a
commit
3c6ba0b678
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue