mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
directfb: remove useless cairo_surface cleanup
This is done by gdk_directfb_cairo_surface_destroy via cairo_surface_set_user_data. Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
This commit is contained in:
parent
333d53b342
commit
8e958f58c9
@ -719,10 +719,8 @@ gdk_directfb_window_destroy (GdkWindow *window,
|
||||
|
||||
if (impl->drawable.surface) {
|
||||
GdkDrawableImplDirectFB *dimpl = GDK_DRAWABLE_IMPL_DIRECTFB (private->impl);
|
||||
if (dimpl->cairo_surface) {
|
||||
if (dimpl->cairo_surface)
|
||||
cairo_surface_destroy (dimpl->cairo_surface);
|
||||
dimpl->cairo_surface= NULL;
|
||||
}
|
||||
impl->drawable.surface->Release (impl->drawable.surface);
|
||||
impl->drawable.surface = NULL;
|
||||
}
|
||||
@ -1349,10 +1347,7 @@ _gdk_directfb_move_resize_child (GdkWindow *window,
|
||||
if (impl->drawable.surface)
|
||||
{
|
||||
if (impl->drawable.cairo_surface)
|
||||
{
|
||||
cairo_surface_destroy (impl->drawable.cairo_surface);
|
||||
impl->drawable.cairo_surface = NULL;
|
||||
}
|
||||
cairo_surface_destroy (impl->drawable.cairo_surface);
|
||||
|
||||
impl->drawable.surface->Release (impl->drawable.surface);
|
||||
impl->drawable.surface = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user