[gtk+/gtk-2-24] Fix a wrong function call



commit 7ee8b1fd9af52842e87c26465b9aa8921e62ec90
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jul 17 21:20:10 2015 -0400

    Fix a wrong function call
    
    cairo_region_destroy can't handle GdkRegions. We need to call
    gdk_region_destroy. Found by coverity.

 gdk/gdkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index a0500ce..eb0a56d 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -8785,7 +8785,7 @@ do_child_shapes (GdkWindow *window,
 
   gdk_window_shape_combine_region (window, region, 0, 0);
 
-  cairo_region_destroy (region);
+  gdk_region_destroy (region);
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]