mirror of https://github.com/GNOME/gimp.git
app: fix 2 GeglBuffer leaks and a profile leak.
This commit is contained in:
parent
2c00152ce2
commit
e495fe7ede
|
@ -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);
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue