[gtk+/gtk-2-22] directfb: remove useless cairo_surface cleanup
- From: Sven Neumann <neo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-22] directfb: remove useless cairo_surface cleanup
- Date: Tue, 31 Aug 2010 19:10:46 +0000 (UTC)
commit 8e958f58c9bb0724844178434f229aaf66b28e65
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Fri May 14 16:44:00 2010 +0200
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>
gdk/directfb/gdkwindow-directfb.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/gdk/directfb/gdkwindow-directfb.c b/gdk/directfb/gdkwindow-directfb.c
index a2e83dc..8a353fc 100644
--- a/gdk/directfb/gdkwindow-directfb.c
+++ b/gdk/directfb/gdkwindow-directfb.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]