diff --git a/gtk2-gdk_region_destroy_instead_of_cairo_region_destroy.patch b/gtk2-gdk_region_destroy_instead_of_cairo_region_destroy.patch new file mode 100644 index 0000000..74dbe66 --- /dev/null +++ b/gtk2-gdk_region_destroy_instead_of_cairo_region_destroy.patch @@ -0,0 +1,24 @@ +From 7ee8b1fd9af52842e87c26465b9aa8921e62ec90 Mon Sep 17 00:00:00 2001 +From: Matthias Clasen +Date: Fri, 17 Jul 2015 21:20:10 -0400 +Subject: Fix a wrong function call + +cairo_region_destroy can't handle GdkRegions. We need to call +gdk_region_destroy. Found by coverity. + +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); + } + + /** +-- +cgit v0.10.2 + diff --git a/gtk2.changes b/gtk2.changes index 06112ff..c065822 100644 --- a/gtk2.changes +++ b/gtk2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Aug 31 08:17:36 UTC 2015 - dimstar@opensuse.org + +- gtk2-gdk_region_destroy_instead_of_cairo_region_destroy.patch + added: Fix a wrong function call. + ------------------------------------------------------------------- Mon Jun 1 11:16:14 UTC 2015 - joschibrauchle@gmx.de diff --git a/gtk2.spec b/gtk2.spec index f724044..bb9a8b4 100644 --- a/gtk2.spec +++ b/gtk2.spec @@ -59,6 +59,8 @@ Patch56: gtk2-bgo625202-30-bit-drawables-remain-black.patch Patch57: gtk2-bgo743166-remember-printing-authentication.patch # PATCH-FIX-UPSTREAM gtk2-bgo737777-fix-printing-authentication-crash.patch bgo#737777 joschibrauchle@gmx.de -- Applications crash randomly while printing with a password-secured SMB printer Patch58: gtk2-bgo737777-fix-printing-authentication-crash.patch +# PATCH-FIX-UPSTREAM gtk2-gdk_region_destroy_instead_of_cairo_region_destroy.patch dimstar@opensuse.org -- Fix a wrong function call +Patch59: gtk2-gdk_region_destroy_instead_of_cairo_region_destroy.patch BuildRequires: atk-devel BuildRequires: cairo-devel BuildRequires: cups-devel @@ -339,6 +341,7 @@ cp -a %{SOURCE2} . %patch56 -p1 %patch57 -p1 %patch58 -p1 +%patch59 -p1 gnome-patch-translation-update %build