r26712 - in /desktop/experimental/gtk+3.0/debian: changelog patches/080_prevent_invalid_free.patch patches/series

sjoerd at users.alioth.debian.org sjoerd at users.alioth.debian.org
Sat Feb 26 11:27:15 UTC 2011


Author: sjoerd
Date: Sat Feb 26 11:27:14 2011
New Revision: 26712

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=26712
Log:
* debian/patches/080_prevent_invalid_free.patch
  - Added. Prevent invalid free on double/tripple click events (from upstream
    git)

Added:
    desktop/experimental/gtk+3.0/debian/patches/080_prevent_invalid_free.patch
Modified:
    desktop/experimental/gtk+3.0/debian/changelog
    desktop/experimental/gtk+3.0/debian/patches/series

Modified: desktop/experimental/gtk+3.0/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gtk%2B3.0/debian/changelog?rev=26712&op=diff
==============================================================================
--- desktop/experimental/gtk+3.0/debian/changelog [utf-8] (original)
+++ desktop/experimental/gtk+3.0/debian/changelog [utf-8] Sat Feb 26 11:27:14 2011
@@ -1,3 +1,11 @@
+gtk+3.0 (3.0.1-2) UNRELEASED; urgency=low
+
+  * debian/patches/080_prevent_invalid_free.patch
+    - Added. Prevent invalid free on double/tripple click events (from upstream
+      git)
+
+ -- Sjoerd Simons <sjoerd at debian.org>  Sat, 26 Feb 2011 11:26:22 +0000
+
 gtk+3.0 (3.0.1-1) experimental; urgency=low
 
   [ Robert Ancell ]

Added: desktop/experimental/gtk+3.0/debian/patches/080_prevent_invalid_free.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gtk%2B3.0/debian/patches/080_prevent_invalid_free.patch?rev=26712&op=file
==============================================================================
--- desktop/experimental/gtk+3.0/debian/patches/080_prevent_invalid_free.patch (added)
+++ desktop/experimental/gtk+3.0/debian/patches/080_prevent_invalid_free.patch [utf-8] Sat Feb 26 11:27:14 2011
@@ -1,0 +1,28 @@
+From 651410fa2a2c9c1e390ecbe384ea259f9bd319c8 Mon Sep 17 00:00:00 2001
+From: Carlos Garcia Campos <cgarcia at igalia.com>
+Date: Thu, 24 Feb 2011 17:38:40 +0100
+Subject: [PATCH] Copy event axes for double/triple click events in gdk_event_copy()
+
+Button event axes for double/triple click events are freed by
+gdk_event_free(), so copy them to avoid an invalid free when releasing a
+copied event.
+---
+ gdk/gdkevents.c |    2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
+
+diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
+index 5188e1e..25853da 100644
+--- a/gdk/gdkevents.c
++++ b/gdk/gdkevents.c
+@@ -555,6 +555,8 @@ gdk_event_copy (const GdkEvent *event)
+       break;
+ 
+     case GDK_BUTTON_PRESS:
++    case GDK_2BUTTON_PRESS:
++    case GDK_3BUTTON_PRESS:
+     case GDK_BUTTON_RELEASE:
+       if (event->button.axes)
+         new_event->button.axes = g_memdup (event->button.axes,
+-- 
+1.7.4.1
+

Modified: desktop/experimental/gtk+3.0/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gtk%2B3.0/debian/patches/series?rev=26712&op=diff
==============================================================================
--- desktop/experimental/gtk+3.0/debian/patches/series [utf-8] (original)
+++ desktop/experimental/gtk+3.0/debian/patches/series [utf-8] Sat Feb 26 11:27:14 2011
@@ -6,3 +6,4 @@
 041_ia32-libs.patch
 042_treeview_single-focus.patch
 060_ignore-random-icons.patch
+080_prevent_invalid_free.patch




More information about the pkg-gnome-commits mailing list