mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-21 06:20:29 +00:00
gtkdnd: Plug a leak
We create a cairo_t in order to find out the surface extents, but it was being leaked, dragging the whole drag surface with it through extra refs.
This commit is contained in:
parent
33f9cbafcd
commit
0606b525b4
@ -3275,6 +3275,7 @@ _gtk_cairo_surface_extents (cairo_surface_t *surface,
|
||||
|
||||
cr = cairo_create (surface);
|
||||
cairo_clip_extents (cr, &x1, &y1, &x2, &y2);
|
||||
cairo_destroy (cr);
|
||||
|
||||
x1 = floor (x1);
|
||||
y1 = floor (y1);
|
||||
|
Loading…
Reference in New Issue
Block a user