app: fix 2 GeglBuffer leaks and a profile leak.

This commit is contained in:
Jehan 2023-09-04 20:46:35 +02:00
parent 2c00152ce2
commit e495fe7ede
2 changed files with 5 additions and 1 deletions

View File

@ -404,6 +404,7 @@ gimp_gegl_buffer_resize (GeglBuffer *buffer,
}
g_object_unref (src_profile);
g_object_unref (dest_profile);
gegl_buffer_set_pattern (new_buffer, NULL, dest_buffer,
pattern_offset_x, pattern_offset_y);

View File

@ -753,7 +753,6 @@ gimp_paint_core_cancel (GimpPaintCore *core,
GEGL_ABYSS_NONE,
gimp_drawable_get_buffer (iter->data),
&rect);
g_object_unref (undo_buffer);
gimp_drawable_update (iter->data, x, y, width, height);
}
@ -825,7 +824,11 @@ gimp_paint_core_cancel (GimpPaintCore *core,
FALSE);
gimp_drawable_update (iter->data, 0, 0, -1, -1);
g_object_unref (buffer);
}
g_object_unref (undo_buffer);
}
gimp_viewable_preview_thaw (GIMP_VIEWABLE (iter->data));