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:
Lionel Landwerlin 2010-05-14 16:44:00 +02:00 committed by Sven Neumann
parent 333d53b342
commit 8e958f58c9

View File

@ -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;